Skip to content

Commit

Permalink
optimize collection validation
Browse files Browse the repository at this point in the history
  • Loading branch information
aMahanna committed Jul 22, 2022
1 parent c7e56fc commit 4f510c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adbnx_adapter/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def networkx_to_arangodb(
else self.__cntrl._identify_networkx_node(nx_id, nx_node, adb_v_cols)
)

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

Expand Down Expand Up @@ -373,7 +373,7 @@ def networkx_to_arangodb(
)
)

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

Expand Down

0 comments on commit 4f510c5

Please sign in to comment.