Skip to content
Permalink
Browse files

Plugin ethermine_hashrate_: fix code style issues reported by flake8

  • Loading branch information...
sumpfralle committed Aug 13, 2019
1 parent 275c82f commit c466adc4d335d9b8adf24646fc557f64976a5ba1
Showing with 5 additions and 5 deletions.
  1. +5 −4 plugins/currency/ethereum/ethermine_hashrate_
  2. +0 −1 t/test-exception-wrapper.expected-failures
@@ -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']
@@ -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

0 comments on commit c466adc

Please sign in to comment.
You can’t perform that action at this time.