We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da4a4be commit 9c039dcCopy full SHA for 9c039dc
latticejson/parse.py
@@ -136,7 +136,7 @@ def reverse_object(self, name):
136
# for all other elements we can return the old reference
137
# TODO: must other elemetns be reversed too?
138
type_, attrs = self.elements[name]
139
- if type_ not in {"sbend", "csbend"} or attrs["e1"] == attrs["e2"]:
+ if type_ not in {"sbend", "csbend"} or attrs.get("e1") == attrs.get("e2"):
140
return name
141
142
attrs = attrs.copy()
0 commit comments