mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
fix: do not catch KeyboardInterrupt/SystemExit
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
This commit is contained in:
@@ -134,7 +134,7 @@ class botClient(Client):
|
||||
self._active_websockets.add(websocket)
|
||||
try:
|
||||
await websocket.ws_connect()
|
||||
except (Exception, KeyboardInterrupt, SystemExit) as e:
|
||||
except Exception as e:
|
||||
if not self.is_shutting_down:
|
||||
await websocket.on_error(e)
|
||||
finally:
|
||||
|
||||
Reference in New Issue
Block a user