5
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2024-09-18 23:49:35 +00:00

sendGraph: Skip node completely if replied with not_found

Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
This commit is contained in:
Johannes Löthberg 2015-11-30 22:41:04 +01:00
parent 2bad4d8b39
commit 9ae06c9ddc

View File

@ -153,7 +153,12 @@ def get_peers(con, path, nearbyPath=''):
res = con.RouterModule_getPeers(path)
if res['error'] != 'none':
if res['error'] == 'not_found':
print('get_peers: node with path {:s} not found, skipping.'
.format(formatted_path))
return []
elif res['error'] != 'none':
print('get_peers: failed with error `{:s}` on {:s}, trying again. {:d} tries remaining.'
.format(res['error'], formatted_path, retry-i))
elif res['result'] == 'timeout':