2
0
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:
Nils 2018-03-29 08:39:20 +02:00
parent f27fc67ccf
commit d809d138b1

View File

@ -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)