summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/loader/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/loader/__init__.py b/lib/loader/__init__.py
index 8f730bb..8b671ef 100644
--- a/lib/loader/__init__.py
+++ b/lib/loader/__init__.py
@@ -415,6 +415,12 @@ class RawData:
os.mkdir(self.cache_dir)
except FileExistsError:
pass
+ except PermissionError:
+ logger.info(
+ f"Cannot write cache entry {self.cache_file}: permission denied"
+ )
+ # no cache for you
+ return
with open(self.cache_file, "w") as f:
cache_data = {
"filenames": self.filenames,