aboutsummaryrefslogtreecommitdiffstats
path: root/modules/cache.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-07-16 10:46:33 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2023-07-16 10:46:33 +0000
commit67ea4eabc3e78c4b496a9fcd21aca95fd5ef7027 (patch)
treef5499fe25753ced5647ac221d503f104e60fdd10 /modules/cache.py
parentace0c78373a51ddbc5207d088b7d08b4a0070644 (diff)
downloadstable-diffusion-webui-gfx803-67ea4eabc3e78c4b496a9fcd21aca95fd5ef7027.tar.gz
stable-diffusion-webui-gfx803-67ea4eabc3e78c4b496a9fcd21aca95fd5ef7027.tar.bz2
stable-diffusion-webui-gfx803-67ea4eabc3e78c4b496a9fcd21aca95fd5ef7027.zip
fix cache loading wrong entries from old cache files
Diffstat (limited to 'modules/cache.py')
-rw-r--r--modules/cache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/cache.py b/modules/cache.py
index 28d42a8c..ddf44637 100644
--- a/modules/cache.py
+++ b/modules/cache.py
@@ -84,7 +84,7 @@ def cached_data_for_file(subsection, title, filename, func):
if ondisk_mtime > cached_mtime:
entry = None
- if not entry:
+ if not entry or 'value' not in entry:
value = func()
if value is None:
return None