Révision d809d138
exit if api failed
| plugins/currency/zcash/zcash_flypool_hashrate_ | ||
|---|---|---|
| 80 | 80 |
mining_stats_raw = urlopen(mining_req, timeout=15) |
| 81 | 81 |
except IOError as exc: |
| 82 | 82 |
print("Failed to request Flypool API: {}".format(exc), file=sys.stderr)
|
| 83 |
|
|
| 83 |
sys.exit(9) |
|
| 84 | 84 |
|
| 85 | 85 |
try: |
| 86 | 86 |
mining_stats = json.load(mining_stats_raw) |
Formats disponibles : Unified diff