PR feedbacks

- Nits
- Add `SecurityUpgradeFailure` and handle `UpgradeFailure` in Swarm.
This commit is contained in:
mhchia
2019-08-20 16:42:34 +08:00
parent 2a1367b011
commit 5768daa9bf
6 changed files with 33 additions and 21 deletions

View File

@ -80,7 +80,8 @@ class Multiselect(IMultiselectMuxer):
# Confirm that the protocols are the same
if not validate_handshake(handshake_contents):
raise MultiselectError(
f"multiselect protocol ID mismatch: handshake_contents={handshake_contents}"
"multiselect protocol ID mismatch: "
f"received handshake_contents={handshake_contents}"
)
# Handshake succeeded if this point is reached