Ver código fonte

hopefully catch command exceptions properly this time

tags/v0.1
Ben Kurtovic 13 anos atrás
pai
commit
20ffe4b55a
1 arquivos alterados com 5 adições e 1 exclusões
  1. +5
    -1
      irc/command_handler.py

+ 5
- 1
irc/command_handler.py Ver arquivo

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

Carregando…
Cancelar
Salvar