From 74d2c8ad5fc5bc383b74ad6a16eccead6649ee6b Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Mon, 6 Apr 2026 17:55:30 +0800 Subject: [PATCH] fix: do not catch KeyboardInterrupt/SystemExit Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com> --- .../platform/sources/qqofficial/qqofficial_platform_adapter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrbot/core/platform/sources/qqofficial/qqofficial_platform_adapter.py b/astrbot/core/platform/sources/qqofficial/qqofficial_platform_adapter.py index 8390dd8e8..3037ab2d8 100644 --- a/astrbot/core/platform/sources/qqofficial/qqofficial_platform_adapter.py +++ b/astrbot/core/platform/sources/qqofficial/qqofficial_platform_adapter.py @@ -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: