mirror of
https://github.com/cwinfo/yggdrasil-map
synced 2024-11-22 12:50:27 +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:
parent
2bad4d8b39
commit
9ae06c9ddc
@ -153,7 +153,12 @@ def get_peers(con, path, nearbyPath=''):
|
|||||||
res = con.RouterModule_getPeers(path)
|
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.'
|
print('get_peers: failed with error `{:s}` on {:s}, trying again. {:d} tries remaining.'
|
||||||
.format(res['error'], formatted_path, retry-i))
|
.format(res['error'], formatted_path, retry-i))
|
||||||
elif res['result'] == 'timeout':
|
elif res['result'] == 'timeout':
|
||||||
|
Loading…
Reference in New Issue
Block a user