mirror of
https://github.com/certbot/certbot.git
synced 2026-06-10 09:10:37 -04:00
Change assertion to a ValueError in signal handler
This commit is contained in:
parent
d8fd3e4e61
commit
2591abd535
2 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue