diff --git a/plugins/currency/zcash/zcash_flypool_hashrate_ b/plugins/currency/zcash/zcash_flypool_hashrate_ index 390ec069..a9cba304 100755 --- a/plugins/currency/zcash/zcash_flypool_hashrate_ +++ b/plugins/currency/zcash/zcash_flypool_hashrate_ @@ -90,13 +90,13 @@ except ValueError: try: worker = mining_stats['data'] -except: +except (KeyError, TypeError): print("JSON result error!", file=sys.stderr) sys.exit(9) try: hash_rate = worker['currentHashrate'] -except: +except (KeyError, TypeError): print("No current Hashrate!", file=sys.stderr) sys.exit(9)