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.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/TurtleArt/talogo.py b/TurtleArt/talogo.py
index 97b8463..7612a9b 100644
--- a/TurtleArt/talogo.py
+++ b/TurtleArt/talogo.py
@@ -1049,7 +1049,8 @@ class LogoCode:
def update_label_value(self, name, value=None):
""" Update the label of value blocks to reflect current value """
- if self.tw.hide or not self.tw.interactive_mode:
+ if self.tw.hide or not self.tw.interactive_mode or \
+ not hasattr(self, 'value_blocks'):
return
if value is None:
for block in self.value_blocks[name]: