amazing cache #55

Merged
kscheidecker merged 22 commits from backend/grid-based-cache into main 2025-01-30 12:40:36 +00:00
Showing only changes of commit f48dcf80c2 - Show all commits

View File

@ -335,8 +335,10 @@ def fill_cache():
with open(entry.path, 'r') as f: with open(entry.path, 'r') as f:
try : try :
json_data = json.load(f) json_data = json.load(f)
except json.decoder.JSONDecodeError as exc :
raise Exception(f'Failed to parse file {f}') from exc
except Exception as exc : except Exception as exc :
raise json.JSONDecodeError(f'Failed to parse file {f}') from exc raise Exception(f'An unexpected error occured while parsing file {f}') from exc
# Fill the cache with the query and key # Fill the cache with the query and key