1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-23 07:20:55 +03:00

Change assertion to a ValueError in signal handler

This commit is contained in:
Seth Schoen
2015-02-09 14:25:18 -08:00
parent d8fd3e4e61
commit 2591abd535
2 changed files with 2 additions and 2 deletions

View File

@@ -60,7 +60,7 @@ class StandaloneAuthenticator(object):
self.subproc_state = "cantbind"
else:
# NOTREACHED
assert False
raise ValueError("Unexpected signal in signal handler")
def subproc_signal_handler(self, sig, unused_frame):
"""Signal handler for the child process.

View File

@@ -123,7 +123,7 @@ class ClientSignalHandlerTest(unittest.TestCase):
# function is only set as a signal handler for the above three
# signals).
self.assertRaises(
AssertionError, self.authenticator.client_signal_handler,
ValueError, self.authenticator.client_signal_handler,
signal.SIGPIPE, None)