fix cache loading wrong entries from old cache files

This commit is contained in:
AUTOMATIC1111 2023-07-16 13:46:33 +03:00
parent ace0c78373
commit 67ea4eabc3

View File

@ -84,7 +84,7 @@ def cached_data_for_file(subsection, title, filename, func):
if ondisk_mtime > cached_mtime: if ondisk_mtime > cached_mtime:
entry = None entry = None
if not entry: if not entry or 'value' not in entry:
value = func() value = func()
if value is None: if value is None:
return None return None