Browse Source

hopefully catch command exceptions properly this time

tags/v0.1
Ben Kurtovic 13 years ago
parent
commit
20ffe4b55a
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      irc/command_handler.py

+ 5
- 1
irc/command_handler.py View File

@@ -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

Loading…
Cancel
Save