Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
fix: catch BaseException in MCP connection to handle CancelledError
chengyongru127ac390632a
diff --git a/nanobot/agent/loop.py b/nanobot/agent/loop.pyindex 5fe0ee0e2..dc764418d 100644--- a/nanobot/agent/loop.py+++ b/nanobot/agent/loop.py@@ -139,7 +139,7 @@ class AgentLoop:await self._mcp_stack.__aenter__()await connect_mcp_servers(self._mcp_servers, self.tools, self._mcp_stack)self._mcp_connected = True- except Exception as e:+ except BaseException as e:logger.error("Failed to connect MCP servers (will retry next message): {}", e)if self._mcp_stack:try: