1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00: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)