From 20ffe4b55ad1f44bf2c48424de013de7904674fe Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sat, 14 May 2011 00:41:48 -0400 Subject: [PATCH] hopefully catch command exceptions properly this time --- irc/command_handler.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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