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(slack): add exception handling to socket listener
andienguyen-ecoligoef96619039c9
diff --git a/nanobot/channels/slack.py b/nanobot/channels/slack.pyindex 4fc1f418c..d1c5895dc 100644--- a/nanobot/channels/slack.py+++ b/nanobot/channels/slack.py@@ -179,18 +179,21 @@ class SlackChannel(BaseChannel):except Exception as e:logger.debug("Slack reactions_add failed: {}", e)- await self._handle_message(- sender_id=sender_id,- chat_id=chat_id,- content=text,- metadata={- "slack": {- "event": event,- "thread_ts": thread_ts,- "channel_type": channel_type,- }- },- )+ try:+ await self._handle_message(+ sender_id=sender_id,+ chat_id=chat_id,+ content=text,+ metadata={+ "slack": {+ "event": event,+ "thread_ts": thread_ts,+ "channel_type": channel_type,+ }+ },+ )+ except Exception as e:+ logger.error("Error handling Slack message from {}: {}", sender_id, e)def _is_allowed(self, sender_id: str, chat_id: str, channel_type: str) -> bool:if channel_type == "im":