in ees_network_drive/local_storage.py [0:0]
def load_storage(self):
"""This method fetches the contents of doc_id.json(local ids storage)
"""
try:
with open(IDS_PATH, encoding='utf-8') as ids_file:
try:
return json.load(ids_file)
except ValueError as exception:
self.logger.exception(
f"Error while parsing the json file of the ids store from path: {IDS_PATH}. Error: {exception}"
)
return {"global_keys": {}}
except FileNotFoundError:
self.logger.debug("Local storage for ids was not found.")
return {"global_keys": {}}