Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/talogo.py
diff options
context:
space:
mode:
Diffstat (limited to 'TurtleArt/talogo.py')
-rw-r--r--TurtleArt/talogo.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/TurtleArt/talogo.py b/TurtleArt/talogo.py
index 5fdb9fd..33d6834 100644
--- a/TurtleArt/talogo.py
+++ b/TurtleArt/talogo.py
@@ -244,10 +244,9 @@ class LogoCode:
for b in blocks:
if b.name in ('hat', 'hat1', 'hat2'):
stack_name = get_stack_name(b)
- if (b.connections is not None and len(b.connections) > 1 and
- stack_name):
- code = self._blocks_to_code(b)
+ if stack_name:
stack_key = self._get_stack_key(stack_name)
+ code = self._blocks_to_code(b)
self.stacks[stack_key] = self._readline(code)
else:
self.tw.showlabel('#nostack')