From 43eab40b01e8e304a76781e2f1310b74c134c09e Mon Sep 17 00:00:00 2001 From: Bryan Schumaker Date: Mon, 25 Oct 2010 09:48:24 -0400 Subject: [PATCH] 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. --- libsaria/event.py | 1 + 1 file changed, 1 insertion(+) diff --git a/libsaria/event.py b/libsaria/event.py index 3859c926..18d97dfd 100644 --- a/libsaria/event.py +++ b/libsaria/event.py @@ -40,6 +40,7 @@ def start(key, *args): else: start_thread(func, *args) except Exception,e: + uninvite(key, func) print print "===== EVENT ERROR =====" print "Event:", key