From d809d138b1b31c8e85de4830b85788ded8b6e65a Mon Sep 17 00:00:00 2001 From: Nils Date: Thu, 29 Mar 2018 08:39:20 +0200 Subject: [PATCH] exit if api failed --- plugins/currency/zcash/zcash_flypool_hashrate_ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/currency/zcash/zcash_flypool_hashrate_ b/plugins/currency/zcash/zcash_flypool_hashrate_ index 06bb397d..390ec069 100755 --- a/plugins/currency/zcash/zcash_flypool_hashrate_ +++ b/plugins/currency/zcash/zcash_flypool_hashrate_ @@ -80,7 +80,7 @@ try: mining_stats_raw = urlopen(mining_req, timeout=15) except IOError as exc: print("Failed to request Flypool API: {}".format(exc), file=sys.stderr) - + sys.exit(9) try: mining_stats = json.load(mining_stats_raw)