skip save_cache_listed instead of aborting if no pathcache was initialized

This commit is contained in:
eugenesvk 2025-02-19 13:34:18 +07:00
parent 0a8287beda
commit 512c805f69

View file

@ -841,7 +841,8 @@ class PathCache: # Singleton
"""Save cached 'Listed' dirs to file (on exit)"""
if hasattr(cls, "_instance"):
self = cls._instance
assert self is not None
if self is None:
return
else:
return
dir_cache = cls.dir_cache_listed