update json.load to json_load - followup to #1142

This commit is contained in:
Matthias 2018-08-19 19:58:07 +02:00
parent 0674c3e8f0
commit a077955efa

View File

@ -177,7 +177,7 @@ def load_cached_data_for_updating(filename: str,
# read the cached file
if os.path.isfile(filename):
with open(filename, "rt") as file:
data = json.load(file)
data = json_load(file)
# remove the last item, because we are not sure if it is correct
# it could be fetched when the candle was incompleted
if data: