diff options
author | fritzy <fritzy@ip-10-251-50-4.ec2.internal> | 2010-10-06 17:58:03 +0000 |
---|---|---|
committer | fritzy <fritzy@ip-10-251-50-4.ec2.internal> | 2010-10-06 17:58:03 +0000 |
commit | 3ffa09ba7c7c1d7806b02a5711c8f6e9eb9b1500 (patch) | |
tree | 71570fbfbba6f3b59c67a8837bfe9041704d9464 /sleekxmpp/xmlstream/xmlstream.py | |
parent | a7410f2146a912d7302e79b38c49a57a01faee72 (diff) | |
download | slixmpp-3ffa09ba7c7c1d7806b02a5711c8f6e9eb9b1500.tar.gz slixmpp-3ffa09ba7c7c1d7806b02a5711c8f6e9eb9b1500.tar.bz2 slixmpp-3ffa09ba7c7c1d7806b02a5711c8f6e9eb9b1500.tar.xz slixmpp-3ffa09ba7c7c1d7806b02a5711c8f6e9eb9b1500.zip |
deal with deleting handlers that are no longer there
Diffstat (limited to 'sleekxmpp/xmlstream/xmlstream.py')
-rw-r--r-- | sleekxmpp/xmlstream/xmlstream.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py index 40218dd5..0d8c8192 100644 --- a/sleekxmpp/xmlstream/xmlstream.py +++ b/sleekxmpp/xmlstream/xmlstream.py @@ -490,7 +490,10 @@ class XMLStream(object): # processed in the queue. with self.__event_handlers_lock: handler_index = self.__event_handlers[name].index(handler) - self.__event_handlers[name].pop(handler_index) + try: + self.__event_handlers[name].pop(handler_index) + except: + pass def schedule(self, name, seconds, callback, args=None, kwargs=None, repeat=False): |