fix(cli): widen _run_cleanup MCP shutdown guard to BaseException
This commit is contained in:
2
cli.py
2
cli.py
@ -974,7 +974,7 @@ def _run_cleanup():
|
|||||||
try:
|
try:
|
||||||
from tools.mcp_tool import shutdown_mcp_servers
|
from tools.mcp_tool import shutdown_mcp_servers
|
||||||
shutdown_mcp_servers()
|
shutdown_mcp_servers()
|
||||||
except Exception:
|
except BaseException:
|
||||||
pass
|
pass
|
||||||
# Close cached auxiliary LLM clients (sync + async) so that
|
# Close cached auxiliary LLM clients (sync + async) so that
|
||||||
# AsyncHttpxClientWrapper.__del__ doesn't fire on a closed event loop
|
# AsyncHttpxClientWrapper.__del__ doesn't fire on a closed event loop
|
||||||
|
|||||||
Reference in New Issue
Block a user