This commit is contained in:
Kovid Goyal 2021-11-21 10:05:47 +05:30
parent 81467c2e7e
commit ecea1ba241
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -635,6 +635,7 @@ def load_themes(cache_age: float = 1., ignore_no_cache: bool = False) -> Themes:
except NoCacheFound:
if not ignore_no_cache:
raise
else:
ans.load_from_zip(fetched)
ans.load_from_dir(os.path.join(config_dir, 'themes'))
ans.index_map = tuple(ans.themes)