Skip to content

Commit

Permalink
Fix traceback for top_edge == "L"
Browse files Browse the repository at this point in the history
No longer access the t1 edge type after changing it which may lead
to t1 being a char instead of a Edge instance

Thanks to michael (https://hackaday.io/hacker/381347-michael) for
pointing this out!
  • Loading branch information
florianfesti committed Feb 10, 2019
1 parent 0d07f48 commit e3ba617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boxes/lids.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def topEdges(self, top_edge):
t3 = "N"
elif t1.char == "v":
t2 = t3 = t4 = "e"
if t1.char == "t":
elif t1.char == "t":
t1 = t3 = "e"
return [t1, t2, t3, t4]

Expand Down

0 comments on commit e3ba617

Please sign in to comment.