Plugin ethermine_hashrate_: fix code style issues reported by flake8

This commit is contained in:
Lars Kruse 2019-08-14 00:29:25 +02:00
parent 275c82f479
commit c466adc4d3
2 changed files with 5 additions and 5 deletions

View File

@ -20,8 +20,8 @@ ethermine_hashrate_<YOUR_PUBLIC_ETHEREUM_ADDRESS>_<YOUR_RIG_NAME>
=head1 INTERPRETATION
This plugin shows the ethermine.org mining pool hashrate (MH/s) of a given ethereum address and rig name.
Hashrate is queried via ethermine.org API L<https://ethermine.org>.
This plugin shows the ethermine.org mining pool hashrate (MH/s) of a given ethereum address and rig
name. Hashrate is queried via ethermine.org API L<https://ethermine.org>.
=head1 VERSION
@ -102,11 +102,12 @@ except ValueError:
try:
workers = mining_stats['workers']
except:
except KeyError:
print("JSON result error!", file=sys.stderr)
sys.exit(9)
# ethermine.org sometimes has caching errors. You can see data from other miner. Always check your rig name.
# ethermine.org sometimes has caching errors. You can see data from other miner. Always check your
# rig name.
for worker in workers:
if workers[worker]['worker'] == miner:
hash_rate = workers[worker]['hashrate']

View File

@ -60,7 +60,6 @@ plugins/cpu/process_count
plugins/cpu/process_cpushare
plugins/currency/bitcoin/slush_hashrate_
plugins/currency/bitcoin/slush_reward_
plugins/currency/ethereum/ethermine_hashrate_
plugins/currency/nanopool/nanopool_
plugins/currency/zcash/zcash_flypool_hashrate_
plugins/cyrus/cyrus-imapd