From 104432a28e369cb81c897de74bb0ae46f192165b Mon Sep 17 00:00:00 2001 From: Thomas Chopitea Date: Wed, 29 Jan 2025 11:22:29 +0100 Subject: [PATCH] Fail safe on missing neighbors (#1219) --- core/database_arango.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/database_arango.py b/core/database_arango.py index 1f99e0b7b..0ade140d8 100644 --- a/core/database_arango.py +++ b/core/database_arango.py @@ -1080,6 +1080,9 @@ def _build_vertices(self, vertices, arango_vertices): type_mapping.update(dfiq.TYPE_MAPPING) for vertex in arango_vertices: + if vertex is None: + logging.warning(f"Found None vertex from {self.extended_id}") + continue if vertex["_key"] in vertices: continue vertex_type = vertex.get("type") or vertex.get("root_type") or "tag"