2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

exit on ioerror

This commit is contained in:
Nils 2017-06-30 08:49:26 +02:00
parent 2820f32d15
commit 25db9a778e
2 changed files with 2 additions and 0 deletions

View File

@ -89,6 +89,7 @@ try:
mining_stats_raw = urlopen(mining_req, timeout=15)
except IOError as exc:
print("Failed to request ethermine.org API: {}".format(exc), file=sys.stderr)
sys.exit(9)
reader = codecs.getreader("utf-8")

View File

@ -87,6 +87,7 @@ try:
etherscan_balance_raw = urlopen(etherscan_req, timeout=15)
except IOError as exc:
print("Failed to request etherscan.io API: {}".format(exc), file=sys.stderr)
sys.exit(9)
reader = codecs.getreader("utf-8")