aboutsummaryrefslogtreecommitdiff
path: root/src/picture_cache.py
diff options
context:
space:
mode:
authorJoris Guyonvarch2025-12-29 17:35:51 +0100
committerJoris Guyonvarch2025-12-29 17:35:51 +0100
commit31d87c86ce2a5f2a8f8aa1d404e39a093e975da7 (patch)
tree3f5e7f20544c3c05137e58803ac24973346d458c /src/picture_cache.py
parent64be629f81dc30f865d84958fc3f68a6217e6482 (diff)
Allow filtering by genre
Diffstat (limited to 'src/picture_cache.py')
-rw-r--r--src/picture_cache.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/picture_cache.py b/src/picture_cache.py
index 8da136b..af4e1bb 100644
--- a/src/picture_cache.py
+++ b/src/picture_cache.py
@@ -22,4 +22,5 @@ class PictureCache:
def invalidate(self, path):
logger.debug('Invalidating: %s', path)
- del self._cache[path]
+ if path in self._cache:
+ del self._cache[path]