mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 00:35:50 +02:00
Don't call_registered() on SystemExit
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user