Don't call_registered() on SystemExit

This commit is contained in:
Brad Warren 2015-09-30 13:00:10 -07:00
parent ce520ca532
commit bb167743f3

View file

@ -50,7 +50,7 @@ class ErrorHandler(object):
self.set_signal_handlers()
def __exit__(self, exec_type, exec_value, trace):
if exec_value is not None:
if exec_type not in (None, SystemExit):
logger.debug("Encountered exception:\n%s", "".join(
traceback.format_exception(exec_type, exec_value, trace)))
self.call_registered()