lost in branches ! typo for some magical unknown reasons
This commit is contained in:
parent
027ec4d98e
commit
a806dd45f2
@ -20,6 +20,7 @@ import importlib
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
def json_load(data):
|
def json_load(data):
|
||||||
"""Try to load data with ujson"""
|
"""Try to load data with ujson"""
|
||||||
if _UJSON:
|
if _UJSON:
|
||||||
@ -177,7 +178,7 @@ def load_cached_data_for_updating(filename: str,
|
|||||||
# read the cached file
|
# read the cached file
|
||||||
if os.path.isfile(filename):
|
if os.path.isfile(filename):
|
||||||
with open(filename, "rt") as file:
|
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
|
# remove the last item, because we are not sure if it is correct
|
||||||
# it could be fetched when the candle was incompleted
|
# it could be fetched when the candle was incompleted
|
||||||
if data:
|
if data:
|
||||||
|
Loading…
Reference in New Issue
Block a user