Don't error if the cached file is already deleted
This commit is contained in:
1 parent
b20893ab03
commit
0e0c0cb434
1 file changed
+1
-1
@@ -59,7 +59,7 @@ class ImageCache:
|
|||||||
if count == 0:
|
if count == 0:
|
||||||
# hashes come with an extension already
|
# hashes come with an extension already
|
||||||
for file in CACHE_PATH.glob(img_hash):
|
for file in CACHE_PATH.glob(img_hash):
|
||||||
file.unlink()
|
file.unlink(missing_ok=True)
|
||||||
|
|
||||||
def save(self) -> None:
|
def save(self) -> None:
|
||||||
if self._altered:
|
if self._altered:
|
||||||
|
|||||||
Reference in new issue
Block a user