From 658102158149363166b94f9cf8f692227f2874c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20L=C3=B6thberg?= Date: Sat, 21 Nov 2015 15:11:48 +0100 Subject: [PATCH] sendGraph: Clarify whether skipping due to timeouts or not MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- scripts/sendGraph.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/sendGraph.py b/scripts/sendGraph.py index 763bb36..bfe27a2 100755 --- a/scripts/sendGraph.py +++ b/scripts/sendGraph.py @@ -155,8 +155,11 @@ def get_peers(con, path): break if 'result' not in res or res['result'] != 'peers': - print('get_peers: failed too many times, skipping.') - print(res) + if 'result' in res and res['result'] == 'timeout': + 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 for peer in res['peers']: