diff --git a/libp2p/protocol_muxer/multiselect_client.py b/libp2p/protocol_muxer/multiselect_client.py index 8e5463a..4cc07d9 100644 --- a/libp2p/protocol_muxer/multiselect_client.py +++ b/libp2p/protocol_muxer/multiselect_client.py @@ -104,9 +104,8 @@ class MultiselectClient(IMultiselectClient): if response == protocol: return protocol if response == PROTOCOL_NOT_FOUND_MSG: - raise MultiselectClientError("protocol not supported") - else: - raise MultiselectClientError("unrecognized response: " + response) + raise MultiselectClientError("protocol not supported") + raise MultiselectClientError("unrecognized response: " + response) def validate_handshake(handshake_contents):