Skip to content

Commit

Permalink
Fail safe on missing neighbors (#1219)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchop authored Jan 29, 2025
1 parent 7974c09 commit 104432a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/database_arango.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 104432a

Please sign in to comment.