We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1539868 commit 4a2b093Copy full SHA for 4a2b093
1 file changed
sandboxes/dynamicanalysis/analyze-python.py
@@ -103,9 +103,13 @@ def import_module(import_path):
103
def execute_package(package):
104
"""Execute phase for analyzing the package."""
105
for p in module_paths_to_import(package):
106
- # if we're here, importing should have already worked during import phase
107
- module = importlib.import_module(p)
108
- execute_module(module)
+ try:
+ module = importlib.import_module(p)
+ except BaseException:
109
+ # We reach here when import fails. So skip this package.
110
+ continue
111
+ else:
112
+ execute_module(module)
113
114
115
def execute_module(module):
0 commit comments