Skip to content

Commit c8c0ec3

Browse files
committed
Fix cache file removal
1 parent 1907259 commit c8c0ec3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

latextools/utils/cache.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def save(self, key=None):
423423
del _objs[k]
424424
file_path = os.path.join(self.cache_path, key)
425425
try:
426-
os.path.remove(file_path)
426+
os.remove(file_path)
427427
except OSError:
428428
pass
429429

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

0 commit comments

Comments
 (0)