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-24 15:25:43 (GMT)
committer Walter Bender <walter.bender@gmail.com>2011-03-24 15:25:43 (GMT)
commit59fbd43d96db4daed40eed47df0dee75b4c0727b (patch)
treeaf15c31ead4957a19004114fba552607d7718d09 /TurtleArt
parentde9eb6d4d67e7c4517539d459193cab389075626 (diff)
avoiding IndexError in adjusting block docking of unknown blocks
Diffstat (limited to 'TurtleArt')
-rw-r--r--TurtleArt/tawindow.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py
index b214dbb..d83b9b7 100644
--- a/TurtleArt/tawindow.py
+++ b/TurtleArt/tawindow.py
@@ -1318,7 +1318,7 @@ class TurtleArtWindow():
return
(sx, sy) = blk.spr.get_xy()
for i, c in enumerate(blk.connections):
- if i > 0 and c is not None:
+ if i > 0 and c is not None and i < len(blk.docks):
bdock = blk.docks[i]
for j in range(len(c.docks)):
if j < len(c.connections) and c.connections[j] == blk: