Skip to content

Commit

Permalink
Fix cache file removal
Browse files Browse the repository at this point in the history
  • Loading branch information
deathaxe committed Jan 20, 2025
1 parent 1907259 commit c8c0ec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions latextools/utils/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ def save(self, key=None):
del _objs[k]
file_path = os.path.join(self.cache_path, key)
try:
os.path.remove(file_path)
os.remove(file_path)
except OSError:
pass

Expand All @@ -445,7 +445,7 @@ def save(self, key=None):
if _objs[key] == _invalid_object:
file_path = os.path.join(self.cache_path, key)
try:
os.path.remove(file_path)
os.remove(file_path)
except OSError as e:
logger.error("error while deleting %s: %s", file_path, e)
traceback.print_exc()
Expand Down

0 comments on commit c8c0ec3

Please sign in to comment.