fix: Filter out None values in module paths
This commit is contained in:
parent
2417d18607
commit
ebb811af87
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ async def _extract_dependencies(script_path: str) -> List[str]:
|
||||||
module_paths = {
|
module_paths = {
|
||||||
entity.get("module_path")
|
entity.get("module_path")
|
||||||
for entity in code_entities
|
for entity in code_entities
|
||||||
if entity.get("module_path")
|
if entity.get("module_path") is not None
|
||||||
}
|
}
|
||||||
|
|
||||||
return sorted(str(path) for path in module_paths)
|
return sorted(str(path) for path in module_paths)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue