Skip to content

Commit

Permalink
Fix FileNotFoundError when updating overwrite/r6/cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ZashIn committed Dec 7, 2024
1 parent c490db4 commit 11ee26d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion games/game_cyberpunk2077.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,10 @@ def _map_cache_files(self):
self._is_cache_file_updated(file, data_path) for file in cache_files
):
qInfo('Updated game files detected, clearing "overwrite/r6/cache/*"')
shutil.rmtree(overwrite_path / "r6/cache")
try:
shutil.rmtree(overwrite_path / "r6/cache")
except FileNotFoundError:
pass
new_cache_files = cache_files
else:
new_cache_files = list(self._unmapped_cache_files(data_path))
Expand Down

0 comments on commit 11ee26d

Please sign in to comment.