diff options
author | Linus Nordberg <linus@nordu.net> | 2015-09-22 22:38:55 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2015-09-27 13:38:29 +0200 |
commit | 623346c701ab00b4f176ed89fd0bf51188d799b8 (patch) | |
tree | 107a2f2790065043924a09f91cb39b0ab3172d29 | |
parent | 5f80e1a1b67221ad81a3c717de569647bf121967 (diff) |
Correct two error printouts.
-rw-r--r-- | tools/mergetools.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/mergetools.py b/tools/mergetools.py index 820087c..7f1b2af 100644 --- a/tools/mergetools.py +++ b/tools/mergetools.py @@ -281,14 +281,15 @@ def sendsth(node, baseurl, own_key, paths, submission): def verifyroot(node, baseurl, own_key, paths, treesize): try: result = http_request(baseurl + "plop/v1/merge/verifyroot", - json.dumps({"tree_size":treesize}), key=own_key, verifynode=node, publickeydir=paths["publickeys"]) + json.dumps({"tree_size":treesize}), key=own_key, + verifynode=node, publickeydir=paths["publickeys"]) return json.loads(result) except urllib2.HTTPError, e: print >>sys.stderr, "ERROR: verifyroot", e.read() sys.exit(1) except ValueError, e: print >>sys.stderr, "==== FAILED REQUEST ====" - print >>sys.stderr, submission + print >>sys.stderr, treesize print >>sys.stderr, "======= RESPONSE =======" print >>sys.stderr, result print >>sys.stderr, "========================" @@ -298,14 +299,15 @@ def verifyroot(node, baseurl, own_key, paths, treesize): def setverifiedsize(node, baseurl, own_key, paths, treesize): try: result = http_request(baseurl + "plop/v1/merge/setverifiedsize", - json.dumps({"size":treesize}), key=own_key, verifynode=node, publickeydir=paths["publickeys"]) + json.dumps({"size":treesize}), key=own_key, + verifynode=node, publickeydir=paths["publickeys"]) return json.loads(result) except urllib2.HTTPError, e: print >>sys.stderr, "ERROR: setverifiedsize", e.read() sys.exit(1) except ValueError, e: print >>sys.stderr, "==== FAILED REQUEST ====" - print >>sys.stderr, submission + print >>sys.stderr, treesize print >>sys.stderr, "======= RESPONSE =======" print >>sys.stderr, result print >>sys.stderr, "========================" |