mirror of https://github.com/nucypher/nucypher.git
This might happen to a stranger who isn't a node and doesn't have a rest_url.
parent
a448903bbb
commit
924435ee37
|
@ -465,9 +465,8 @@ class Character(Learner):
|
||||||
f"Expected to connect to {stranger}, got {node_on_the_other_end} instead.")
|
f"Expected to connect to {stranger}, got {node_on_the_other_end} instead.")
|
||||||
else:
|
else:
|
||||||
raise InvalidSignature("Signature for message isn't valid: {}".format(signature_to_use))
|
raise InvalidSignature("Signature for message isn't valid: {}".format(signature_to_use))
|
||||||
except (TypeError, AttributeError):
|
except (TypeError, AttributeError) as e:
|
||||||
raise self.known_node_class.InvalidNode(
|
raise InvalidSignature(f"Unable to verify message from stranger: {stranger}")
|
||||||
f"Unable to verify message from strange node at {stranger.rest_url()}")
|
|
||||||
else:
|
else:
|
||||||
raise InvalidSignature("No signature provided -- signature presumed invalid.")
|
raise InvalidSignature("No signature provided -- signature presumed invalid.")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue