diff --git a/osbuild/meta.py b/osbuild/meta.py index 12cecb02..36ec9068 100644 --- a/osbuild/meta.py +++ b/osbuild/meta.py @@ -429,6 +429,8 @@ class ModuleInfo: except FileNotFoundError: return None + # using AST here and not importlib because we can read/parse + # even if some python imports that the module may need are missing tree = ast.parse(data, name) docstring = ast.get_docstring(tree)