mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
ValueError comment
This commit is contained in:
parent
73d11530ae
commit
17a2e23686
@ -96,6 +96,7 @@ reader = codecs.getreader("utf-8")
|
||||
try:
|
||||
mining_stats = json.load(reader(mining_stats_raw))
|
||||
except ValueError:
|
||||
# Error in decoding operation or in JSON parsing throw a ValueError
|
||||
print("Failed to parse JSON response.", file=sys.stderr)
|
||||
sys.exit(9)
|
||||
|
||||
|
@ -94,6 +94,7 @@ reader = codecs.getreader("utf-8")
|
||||
try:
|
||||
etherscan_balance = json.load(reader(etherscan_balance_raw))
|
||||
except ValueError:
|
||||
# Error in decoding operation or in JSON parsing throw a ValueError
|
||||
print("Failed to parse JSON response.", file=sys.stderr)
|
||||
sys.exit(9)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user