Uninvite functions on error
If a function responding to an event has an unhandled exception, we print a message telling what went wrong and that the function has been uninvited. However, I never actually uninvite the function from the event. I have now added in a call to uninvite() before printing the message.
This commit is contained in:
parent
b69e790186
commit
43eab40b01
|
@ -40,6 +40,7 @@ def start(key, *args):
|
||||||
else:
|
else:
|
||||||
start_thread(func, *args)
|
start_thread(func, *args)
|
||||||
except Exception,e:
|
except Exception,e:
|
||||||
|
uninvite(key, func)
|
||||||
print
|
print
|
||||||
print "===== EVENT ERROR ====="
|
print "===== EVENT ERROR ====="
|
||||||
print "Event:", key
|
print "Event:", key
|
||||||
|
|
Loading…
Reference in New Issue