Don't error if the cached file is already deleted

This commit is contained in:
DevilXD committed 2022-07-23 12:32:07 +02:00
1 parent b20893ab03
commit 0e0c0cb434
1 file changed
+1 -1
+1 -1
View File
@@ -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: