mirror of
https://github.com/certbot/certbot.git
synced 2026-07-30 18:04:31 +02:00
Change assertion to a ValueError in signal handler
This commit is contained in:
@@ -60,7 +60,7 @@ class StandaloneAuthenticator(object):
|
|||||||
self.subproc_state = "cantbind"
|
self.subproc_state = "cantbind"
|
||||||
else:
|
else:
|
||||||
# NOTREACHED
|
# NOTREACHED
|
||||||
assert False
|
raise ValueError("Unexpected signal in signal handler")
|
||||||
|
|
||||||
def subproc_signal_handler(self, sig, unused_frame):
|
def subproc_signal_handler(self, sig, unused_frame):
|
||||||
"""Signal handler for the child process.
|
"""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
|
# function is only set as a signal handler for the above three
|
||||||
# signals).
|
# signals).
|
||||||
self.assertRaises(
|
self.assertRaises(
|
||||||
AssertionError, self.authenticator.client_signal_handler,
|
ValueError, self.authenticator.client_signal_handler,
|
||||||
signal.SIGPIPE, None)
|
signal.SIGPIPE, None)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user