mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-27 19:19:54 +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:
|
try:
|
||||||
func(*args)
|
func(*args)
|
||||||
except:
|
except Exception as e:
|
||||||
pass
|
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):
|
def _event_runner(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue