diff options
Diffstat (limited to 'astroid/modutils.py')
-rw-r--r-- | astroid/modutils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/astroid/modutils.py b/astroid/modutils.py index 57c625dc..95a17d45 100644 --- a/astroid/modutils.py +++ b/astroid/modutils.py @@ -653,7 +653,7 @@ def _precache_zipimporters(path=None): try: pic[entry_path] = zipimport.zipimporter(entry_path) except zipimport.ZipImportError: - pic[entry_path] = None + continue return pic @@ -807,7 +807,7 @@ def _find_spec(modpath, path=None): # Need a copy for not mutating the argument. modpath = modpath[:] - submodule_path = [] + submodule_path = None module_parts = modpath[:] processed = [] |