From e9529578d5a4efeab96f5566c4219d3c51d9ab28 Mon Sep 17 00:00:00 2001 From: YapBi <129007007+HeLLGURD@users.noreply.github.com> Date: Fri, 5 Jun 2026 04:22:17 +0300 Subject: [PATCH] fix(mcp): widen shutdown_mcp_servers exception guard to BaseException --- tools/mcp_tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mcp_tool.py b/tools/mcp_tool.py index ccfe69d55..3a817d579 100644 --- a/tools/mcp_tool.py +++ b/tools/mcp_tool.py @@ -3800,7 +3800,7 @@ def shutdown_mcp_servers(): if future is not None: try: future.result(timeout=15) - except Exception as exc: + except BaseException as exc: logger.debug("Error during MCP shutdown: %s", exc) _stop_mcp_loop()