deal with deleting handlers that are no longer there

This commit is contained in:
fritzy 2010-10-06 17:58:03 +00:00
parent a7410f2146
commit 3ffa09ba7c

View file

@ -490,7 +490,10 @@ class XMLStream(object):
# processed in the queue.
with self.__event_handlers_lock:
handler_index = self.__event_handlers[name].index(handler)
try:
self.__event_handlers[name].pop(handler_index)
except:
pass
def schedule(self, name, seconds, callback, args=None,
kwargs=None, repeat=False):