2
0
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:
Nils 2017-07-01 09:34:50 +02:00
parent 73d11530ae
commit 17a2e23686
2 changed files with 2 additions and 0 deletions

View File

@ -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)

View File

@ -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)