mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-12-25 03:00:17 +00:00
Fix bug introduced while fixing another bug.
Threaded event handlers now handle exceptions again.
This commit is contained in:
parent
38c2f51f83
commit
7351fe1a02
1 changed files with 5 additions and 2 deletions
|
@ -828,8 +828,11 @@ class XMLStream(object):
|
|||
"""
|
||||
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):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue