From 17a2e236865e81069a6064ee7b8b6ea1c9c14cb5 Mon Sep 17 00:00:00 2001 From: Nils Date: Sat, 1 Jul 2017 09:34:50 +0200 Subject: [PATCH] ValueError comment --- plugins/currency/ethereum/ethermine_hashrate_ | 1 + plugins/currency/ethereum/etherscan_balance_ | 1 + 2 files changed, 2 insertions(+) diff --git a/plugins/currency/ethereum/ethermine_hashrate_ b/plugins/currency/ethereum/ethermine_hashrate_ index 42cc7eba..8a210413 100755 --- a/plugins/currency/ethereum/ethermine_hashrate_ +++ b/plugins/currency/ethereum/ethermine_hashrate_ @@ -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) diff --git a/plugins/currency/ethereum/etherscan_balance_ b/plugins/currency/ethereum/etherscan_balance_ index 53ecd34a..dd80be5f 100755 --- a/plugins/currency/ethereum/etherscan_balance_ +++ b/plugins/currency/ethereum/etherscan_balance_ @@ -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)