From cd83b93e98693e63cc6d31ccab71f032ae38d461 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Mon, 31 Aug 2015 18:26:14 +0900 Subject: [PATCH] Return the result not the full dictionary --- scripts/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/util.py b/scripts/util.py index e1d000b1..454d256c 100644 --- a/scripts/util.py +++ b/scripts/util.py @@ -75,6 +75,6 @@ def send_request(peers, request): for peer in interfaces: if not peer in responses: print peer, "did not answer" - results = dict(zip(responses.keys(), [t[0][1] for t in responses.values()])) + results = dict(zip(responses.keys(), [t[0][1].get('result') for t in responses.values()])) print "%d answers"%len(results) return results