diff --git a/xonsh/procs/executables.py b/xonsh/procs/executables.py index 0e95c16db..75e786478 100644 --- a/xonsh/procs/executables.py +++ b/xonsh/procs/executables.py @@ -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