mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 08:12:15 -04:00
Don't call_registered() on SystemExit
This commit is contained in:
parent
ce520ca532
commit
bb167743f3
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue