From e3ba617f22f6321d662f6ee359e79ffc05f5e871 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sun, 10 Feb 2019 19:49:51 +0100 Subject: [PATCH] Fix traceback for top_edge == "L" 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! --- boxes/lids.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boxes/lids.py b/boxes/lids.py index f97e641..753760d 100644 --- a/boxes/lids.py +++ b/boxes/lids.py @@ -115,7 +115,7 @@ class _TopEdge(Boxes): 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]