From 4d1b1fa9749ae3caa98ac3c61fcfda349302050d Mon Sep 17 00:00:00 2001 From: retoor Date: Thu, 13 Feb 2025 10:31:50 +0100 Subject: [PATCH] Updated example. --- src/snekbot/bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/snekbot/bot.py b/src/snekbot/bot.py index 800f157..88340b1 100644 --- a/src/snekbot/bot.py +++ b/src/snekbot/bot.py @@ -95,8 +95,8 @@ class Bot: await self.on_mention(data.username, data.user_nick, data.channel_uid, data.message) else: await self.on_message(data.username, data.user_nick, data.channel_uid, data.message) - except AttributeError: - logger.debug("Event unhandled regarding message: " + data.message) + except AttributeError as ex: + logger.exception(ex) except Exception as ex: logger.exception(ex)