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
1 changed files with 1 additions and 1 deletions

View File

@ -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