Small fixes to how errors are reported

This commit is contained in:
Seth Schoen 2015-02-02 17:03:29 -08:00
parent 867b719de5
commit 220c61f124

View file

@ -135,7 +135,7 @@ def tls_parse_client_hello(tls_record):
if first_sn_type != "\0":
# SNI extension referenced something other than a
# hostname
return False
return None
first_sn_length = unpack_2bytes(handshake[i+3:i+5])
first_sn = handshake[i+5:i+5+first_sn_length]
return best_ciphersuite, first_sn
@ -491,7 +491,7 @@ class StandaloneAuthenticator(object):
del self.tasks[nonce + CONFIG.INVALID_EXT]
else:
# Could not find the challenge to remove!
assert False
raise ValueError("could not find the challenge to remove")
if self.child_pid and not self.tasks:
# There are no remaining challenges, so
# try to shutdown self.child_pid cleanly.