mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
exit if api failed
This commit is contained in:
parent
f27fc67ccf
commit
d809d138b1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user