Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt
diff options
context:
space:
mode:
Diffstat (limited to 'TurtleArt')
-rw-r--r--TurtleArt/tawindow.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py
index 2b0abc8..ae56f3c 100644
--- a/TurtleArt/tawindow.py
+++ b/TurtleArt/tawindow.py
@@ -1821,7 +1821,8 @@ class TurtleArtWindow():
return True
# Otherwise, use keyboard input to move blocks or turtles
# but not proto blocks
- elif self.selected_blk.name != 'proto':
+ elif self.selected_blk is not None and \
+ self.selected_blk.name != 'proto':
self._process_keyboard_commands(keyname)
if self.selected_blk is None:
return False