diff --git a/panoptisch/imports.py b/panoptisch/imports.py index 6df3efb..60806f8 100644 --- a/panoptisch/imports.py +++ b/panoptisch/imports.py @@ -31,6 +31,8 @@ def get_module_files(module: ModuleType) -> List[str]: entry = module.__file__ except AttributeError: return [] # frozen module + if entry is None: + return [] if entry.endswith('__init__.py'): entry_folder = get_file_dir(entry) return glob.glob(f'{entry_folder}/**/*.py', recursive=True) diff --git a/pyproject.toml b/pyproject.toml index ebd85fe..3caa2f9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "panoptisch" -version = "0.1.6" +version = "0.1.7" description = "A recursive Python dependency scanner." authors = ["aarnav "]