We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3312c77 + ff08747 commit b31272cCopy full SHA for b31272c
1 file changed
src/sinol_make/helpers/cache.py
@@ -23,6 +23,11 @@ def get_cache_file(solution_path: str) -> CacheFile:
23
return CacheFile()
24
try:
25
return CacheFile.from_dict(data)
26
+ except KeyError:
27
+ print(util.warning(f"Cache file for program {os.path.basename(solution_path)} is corrupted. "
28
+ f"Removing it, no action required."))
29
+ os.unlink(cache_file_path)
30
+ return CacheFile()
31
except ValueError as exc:
32
print(util.error(f"An error occured while parsing cache file for solution {os.path.basename(solution_path)}."))
33
util.exit_with_error(str(exc))
0 commit comments