use json_load to load data

- otherwise unforseen problems could appear due to the default beeing ujson
This commit is contained in:
Matthias 2018-12-15 14:22:49 +01:00
parent 6c02cc5993
commit c1a32bc6c8
1 changed files with 2 additions and 2 deletions

View File

@ -81,11 +81,11 @@ def load_tickerdata_file(
if gzipfile.is_file():
logger.debug('Loading ticker data from file %s', gzipfile)
with gzip.open(gzipfile) as tickerdata:
pairdata = json.load(tickerdata)
pairdata = json_load(tickerdata)
elif file.is_file():
logger.debug('Loading ticker data from file %s', file)
with open(file) as tickerdata:
pairdata = json.load(tickerdata)
pairdata = json_load(tickerdata)
else:
return None