Skip to content

Commit 9c039dc

Browse files
committed
[elegant parser] make e1 and e2 optional for csbend
1 parent da4a4be commit 9c039dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

latticejson/parse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def reverse_object(self, name):
136136
# for all other elements we can return the old reference
137137
# TODO: must other elemetns be reversed too?
138138
type_, attrs = self.elements[name]
139-
if type_ not in {"sbend", "csbend"} or attrs["e1"] == attrs["e2"]:
139+
if type_ not in {"sbend", "csbend"} or attrs.get("e1") == attrs.get("e2"):
140140
return name
141141

142142
attrs = attrs.copy()

0 commit comments

Comments
 (0)