Skip to content

Commit 4f510c5

Browse files
committed
optimize collection validation
1 parent c7e56fc commit 4f510c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

adbnx_adapter/adapter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def networkx_to_arangodb(
322322
else self.__cntrl._identify_networkx_node(nx_id, nx_node, adb_v_cols)
323323
)
324324

325-
if col not in adb_v_cols:
325+
if not has_one_vcol and col not in adb_v_cols:
326326
msg = f"'{nx_id}' identified as '{col}', which is not in {adb_v_cols}"
327327
raise ValueError(msg)
328328

@@ -373,7 +373,7 @@ def networkx_to_arangodb(
373373
)
374374
)
375375

376-
if col not in adb_e_cols:
376+
if not has_one_ecol and col not in adb_e_cols:
377377
msg = f"{edge_str} identified as '{col}', which is not in {adb_e_cols}"
378378
raise ValueError(msg)
379379

0 commit comments

Comments
 (0)