aboutsummaryrefslogtreecommitdiff
path: root/contrib/linearize
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2017-07-09 22:57:02 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2017-08-28 15:18:14 +0200
commit25cd520fc429c464846b0f986104db45b3bfaebb (patch)
tree3b8055f06c0b70d0cdd2431d2597f6173f3d643d /contrib/linearize
parentf088a1bb392eaecd912ff9bca6967a8f4765c2b7 (diff)
Use sys.exit(...) instead of exit(...): exit(...) should not be used in programs
Diffstat (limited to 'contrib/linearize')
-rwxr-xr-xcontrib/linearize/linearize-hashes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/linearize/linearize-hashes.py b/contrib/linearize/linearize-hashes.py
index db8eb7021e..7719f4ccd6 100755
--- a/contrib/linearize/linearize-hashes.py
+++ b/contrib/linearize/linearize-hashes.py
@@ -87,7 +87,7 @@ def get_block_hashes(settings, max_blocks_per_call=10000):
for x,resp_obj in enumerate(reply):
if rpc.response_is_error(resp_obj):
print('JSON-RPC: error at height', height+x, ': ', resp_obj['error'], file=sys.stderr)
- exit(1)
+ sys.exit(1)
assert(resp_obj['id'] == x) # assume replies are in-sequence
if settings['rev_hash_bytes'] == 'true':
resp_obj['result'] = hex_switchEndian(resp_obj['result'])