Skip to content

Your lightweight open-source personal agent.

fix(slack): use logger.exception to capture full traceback

Re-binb93b77a485d3
diff --git a/nanobot/channels/slack.py b/nanobot/channels/slack.py
index d1c5895dc..b0f9bbb21 100644
--- a/nanobot/channels/slack.py
+++ b/nanobot/channels/slack.py
@@ -192,8 +192,8 @@ class SlackChannel(BaseChannel):
}
},
)
- except Exception as e:
- logger.error("Error handling Slack message from {}: {}", sender_id, e)
+ except Exception:
+ logger.exception("Error handling Slack message from {}", sender_id)
def _is_allowed(self, sender_id: str, chat_id: str, channel_type: str) -> bool:
if channel_type == "im":