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:
parent
2820f32d15
commit
25db9a778e
2 changed files with 2 additions and 0 deletions
|
@ -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")
|
||||
|
||||
|
|
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue