Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2011-03-19 16:58:00 (GMT)
committer Walter Bender <walter.bender@gmail.com>2011-03-19 16:58:00 (GMT)
commitfe4ed1df8325bc195c5a1becb8a667bf34a88c44 (patch)
tree226bacb2f7fce6675c1dfc2d8e01b6260a37e3c1 /TurtleArt
parent39148fdce30ce0ed8c0af5a6051b65abf79633ed (diff)
don't try disconnecting None blocks
Diffstat (limited to 'TurtleArt')
-rw-r--r--TurtleArt/tawindow.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py
index 0102dc6..8a6cad5 100644
--- a/TurtleArt/tawindow.py
+++ b/TurtleArt/tawindow.py
@@ -1223,8 +1223,7 @@ class TurtleArtWindow():
def process_data(self, block_data, offset=0):
""" Process block_data (from a macro, a file, or the clipboard). """
- if offset != 0:
- debug_output("offset is %d" % (offset), self.running_sugar)
+
# Create the blocks (or turtle).
blocks = []
for blk in block_data:
@@ -1934,6 +1933,8 @@ class TurtleArtWindow():
def _disconnect(self, blk):
""" Disconnect block from stack above it. """
+ if blk is None:
+ return
if blk.connections[0] is None:
return
if collapsed(blk):