Fix bug introduced while fixing another bug.
Threaded event handlers now handle exceptions again.
This commit is contained in:
parent
38c2f51f83
commit
7351fe1a02
@ -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…
x
Reference in New Issue
Block a user