This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix bug introduced while fixing another bug.

Threaded event handlers now handle exceptions again.
  • Loading branch information...
legastero committed Nov 4, 2010
1 parent 38c2f51 commit 7351fe1a0226298419e3d174d7b156daad91c131
Showing with 5 additions and 2 deletions.
  1. +5 −2 sleekxmpp/xmlstream/xmlstream.py
@@ -828,8 +828,11 @@ def _threaded_event_wrapper(self, func, args):
"""
try:
func(*args)
- except:
- pass
+ except Exception as e:
+ error_msg = 'Error processing event handler: %s'
+ logging.exception(error_msg % str(func))
+ if hasattr(args[0], 'exception'):
+ args[0].exception(e)
def _event_runner(self):
"""

0 comments on commit 7351fe1

Please sign in to comment.