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:
Soulter
2026-04-06 17:55:30 +08:00
committed by GitHub
parent b3863e0290
commit 74d2c8ad5f

View File

@@ -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: