From 31d87c86ce2a5f2a8f8aa1d404e39a093e975da7 Mon Sep 17 00:00:00 2001 From: Joris Guyonvarch Date: Mon, 29 Dec 2025 17:35:51 +0100 Subject: Allow filtering by genre --- src/picture_cache.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/picture_cache.py') 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] -- cgit v1.2.3