damn xml
Some checks failed
Run testing on the backend code / Build (pull_request) Has been cancelled
Run linting on the backend code / Build (pull_request) Has been cancelled
Build and deploy the backend to staging / Build and push image (pull_request) Successful in 1m31s
Build and deploy the backend to staging / Deploy to staging (pull_request) Successful in 25s
Some checks failed
Run testing on the backend code / Build (pull_request) Has been cancelled
Run linting on the backend code / Build (pull_request) Has been cancelled
Build and deploy the backend to staging / Build and push image (pull_request) Successful in 1m31s
Build and deploy the backend to staging / Deploy to staging (pull_request) Successful in 25s
This commit is contained in:
parent
2a5023df4b
commit
1240f86d6e
@ -334,13 +334,11 @@ def fill_cache():
|
||||
# Read the whole file content as a string
|
||||
with open(entry.path, 'r') as f:
|
||||
try :
|
||||
# load data and fill the cache with the query and key
|
||||
json_data = json.load(f)
|
||||
overpass.fill_cache(json_data)
|
||||
except Exception as exc :
|
||||
overpass.logger.error(f'An error occured while parsing file {f} as .json file')
|
||||
|
||||
|
||||
# Fill the cache with the query and key
|
||||
overpass.fill_cache(json_data)
|
||||
|
||||
# Now delete the file as the cache is filled
|
||||
os.remove(entry.path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user