diff --git a/core/bot.py b/core/bot.py index 75cee7c..fce82c8 100644 --- a/core/bot.py +++ b/core/bot.py @@ -172,7 +172,10 @@ class IRCBot(IRCClient): prefix, command, params = parsemsg(line) if command in numeric_to_symbolic: command = numeric_to_symbolic[command] - self.handleCommand(command, prefix, params) + try: + self.handleCommand(command, prefix, params) + except Exception as err: + error(err) except IRCBadMessage: self.badMessage(line, *sys.exc_info())