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:
parent
73d11530ae
commit
17a2e23686
2 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue