Need to raise some kind of error if the response is a no-go.

pull/330/head
jMyles 2018-06-05 19:31:19 -07:00 committed by Kieran Prasch
parent 7ddb9f26fc
commit 37b32d58cf
1 changed files with 2 additions and 0 deletions

View File

@ -298,6 +298,8 @@ class Character:
Sends a request to node_url to find out about known nodes.
"""
response = self.network_middleware.get_nodes_via_rest(rest_address, port)
if response.status_code != 200:
raise RuntimeError
signature, nodes = signature_splitter(response.content, return_remainder=True)
# TODO: Although not treasure map-related, this has a whiff of #172.