1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

reader removed

This commit is contained in:
Nils 2018-03-29 08:37:53 +02:00
parent 21341b5a00
commit f27fc67ccf

View file

@ -81,10 +81,9 @@ try:
except IOError as exc:
print("Failed to request Flypool API: {}".format(exc), file=sys.stderr)
reader = codecs.getreader("utf-8")
try:
mining_stats = json.load(reader(mining_stats_raw))
mining_stats = json.load(mining_stats_raw)
except ValueError:
print("Failed to parse JSON responce.", file=sys.stderr)
sys.exit(9)