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)