fix(cli): widen _run_cleanup MCP shutdown guard to BaseException

This commit is contained in:
YapBi
2026-06-05 04:22:48 +03:00
committed by Teknium
parent e9529578d5
commit 1bcfe9c58a

2
cli.py
View File

@ -974,7 +974,7 @@ def _run_cleanup():
try:
from tools.mcp_tool import shutdown_mcp_servers
shutdown_mcp_servers()
except Exception:
except BaseException:
pass
# Close cached auxiliary LLM clients (sync + async) so that
# AsyncHttpxClientWrapper.__del__ doesn't fire on a closed event loop