mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 00:14:41 +01:00
skip save_cache_listed instead of aborting if no pathcache was initialized
This commit is contained in:
parent
0a8287beda
commit
512c805f69
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue