mirror of
https://github.com/cwinfo/yggdrasil-map
synced 2024-11-22 12:50:27 +00:00
sendGraph: Fix printed messages
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
This commit is contained in:
parent
9ae06c9ddc
commit
1a8102bb80
@ -169,7 +169,7 @@ def get_peers(con, path, nearbyPath=''):
|
|||||||
|
|
||||||
i += 1
|
i += 1
|
||||||
|
|
||||||
print('get_peers: timed out on final try, skipping {:s}'
|
print('get_peers: failed on final try, skipping {:s}'
|
||||||
.format(formatted_path))
|
.format(formatted_path))
|
||||||
return []
|
return []
|
||||||
|
|
||||||
@ -256,7 +256,7 @@ def send_graph(nodes, edges):
|
|||||||
if r.text == 'OK':
|
if r.text == 'OK':
|
||||||
print('Done!')
|
print('Done!')
|
||||||
else:
|
else:
|
||||||
print('Error: {:s}'.format(r.text))
|
print('{:s}'.format(r.text))
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
Loading…
Reference in New Issue
Block a user