Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tautils.py
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2010-07-17 15:39:01 (GMT)
committer Walter Bender <walter@sugarlabs.org>2010-07-17 15:39:01 (GMT)
commit782915cc52fdefaf9656ead85063d1b71b9d72e7 (patch)
tree28030da4d7b2711d4f9d1ca21626bcc63d5cfe8d /tautils.py
parent4621032ae4bf2c46148ea84903bc200a8385b10e (diff)
more robust error checking
Diffstat (limited to 'tautils.py')
-rw-r--r--tautils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tautils.py b/tautils.py
index c7587c4..e7888ea 100644
--- a/tautils.py
+++ b/tautils.py
@@ -429,7 +429,7 @@ def uncollapse_forks(top, looping=False):
def collapse_stack(top):
""" Hide all the blocks between the sandwich top and sandwich bottom. """
# First uncollapse any nested stacks
- if top.spr == None:
+ if top == None or top.spr == None:
return
uncollapse_forks(top)
_hit_bottom = False