From ebb811af8745f1ebaf9915d387beaf234094250e Mon Sep 17 00:00:00 2001 From: lxobr Date: Tue, 19 Nov 2024 09:08:54 +0100 Subject: [PATCH] fix: Filter out None values in module paths --- cognee/tasks/repo_processor/local_script_dependencies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cognee/tasks/repo_processor/local_script_dependencies.py b/cognee/tasks/repo_processor/local_script_dependencies.py index 18576b359..a39680521 100644 --- a/cognee/tasks/repo_processor/local_script_dependencies.py +++ b/cognee/tasks/repo_processor/local_script_dependencies.py @@ -84,7 +84,7 @@ async def _extract_dependencies(script_path: str) -> List[str]: module_paths = { entity.get("module_path") 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)