Skip to content

Commit cd83b93

Browse files
author
Neil Booth
committed
Return the result not the full dictionary
1 parent f11e46e commit cd83b93

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,6 @@ def send_request(peers, request):
7575
for peer in interfaces:
7676
if not peer in responses:
7777
print peer, "did not answer"
78-
results = dict(zip(responses.keys(), [t[0][1] for t in responses.values()]))
78+
results = dict(zip(responses.keys(), [t[0][1].get('result') for t in responses.values()]))
7979
print "%d answers"%len(results)
8080
return results

0 commit comments

Comments
 (0)