Fix bug introduced while fixing another bug.

Threaded event handlers now handle exceptions again.
This commit is contained in:
Lance Stout 2010-11-04 14:35:35 -04:00
parent 38c2f51f83
commit 7351fe1a02

View file

@ -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):
"""