diff --git a/irc/command_handler.py b/irc/command_handler.py index 40f0de2..33566ee 100644 --- a/irc/command_handler.py +++ b/irc/command_handler.py @@ -58,5 +58,9 @@ def check(hook, data): for command in commands: if hook in command.get_hooks(): if command.check(data): - command.process(data) + try: + command.process(data) + except: + print "Error executing command:" + traceback.print_exc() # catch exceptions and print them break