tReturn the result not the full dictionary - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit cd83b93e98693e63cc6d31ccab71f032ae38d461 DIR parent f11e46e479d77b92afb488d3b58b2e9ed78de4c7 HTML Author: Neil Booth <kyuupichan@gmail.com> Date: Mon, 31 Aug 2015 18:26:14 +0900 Return the result not the full dictionary Diffstat: M scripts/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/scripts/util.py b/scripts/util.py t@@ -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