Skip to content

Commit

Permalink
Merge pull request #205 from tigergraph/GML-1473-oo-schema-undirected…
Browse files Browse the repository at this point in the history
…-edge-bug

Gml 1473 oo schema undirected edge bug
  • Loading branch information
parkererickson-tg authored Dec 12, 2023
2 parents a225829 + 51bb40b commit 0f90cc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyTigerGraph/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ def add_edge_type(self, edge: Edge):

if not(reverse_edge) and is_directed:
raise TigerGraphException("Reverse edge definition not set. Set the reverse_edge variable to a boolean or string.")
if not(is_directed):
if is_directed is None:
raise TigerGraphConnection("is_directed variable not defined. Define is_directed as a class variable to the desired setting.")

if not(edge.attributes.get("from_vertex", None)):
Expand Down

0 comments on commit 0f90cc7

Please sign in to comment.