mirror of
https://github.com/cwinfo/yggdrasil-map
synced 2024-12-28 14:05:42 +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)
|
||||
|
||||
|
||||
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':
|
||||
|
Loading…
Reference in New Issue
Block a user