mirror of
https://github.com/cwinfo/yggdrasil-map
synced 2024-11-25 02:01:35 +00:00
sendGraph: Clarify whether skipping due to timeouts or not
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
This commit is contained in:
parent
dc733a9b45
commit
6581021581
@ -155,8 +155,11 @@ def get_peers(con, path):
|
|||||||
break
|
break
|
||||||
|
|
||||||
if 'result' not in res or res['result'] != 'peers':
|
if 'result' not in res or res['result'] != 'peers':
|
||||||
print('get_peers: failed too many times, skipping.')
|
if 'result' in res and res['result'] == 'timeout':
|
||||||
print(res)
|
print('get_peers: timed out on final try, skipping.')
|
||||||
|
else:
|
||||||
|
print('get_peers: failed too many times, skipping. Last response: {:s}'
|
||||||
|
.format(str(res)))
|
||||||
return peers
|
return peers
|
||||||
|
|
||||||
for peer in res['peers']:
|
for peer in res['peers']:
|
||||||
|
Loading…
Reference in New Issue
Block a user