Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/turtleblocks.py
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2013-07-25 20:38:38 (GMT)
committer Walter Bender <walter@sugarlabs.org>2013-07-25 20:38:38 (GMT)
commit7fcbc8b6e7ccc07776d92c0535edc5bd5681e005 (patch)
treee5931351df1885a8cb026173a09cd8c12d8fd162 /turtleblocks.py
parent0aa7f0e5e65e96fb8f32ffcdf0b1112f26988899 (diff)
fix problems with non-interactive mode
Diffstat (limited to 'turtleblocks.py')
-rwxr-xr-xturtleblocks.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/turtleblocks.py b/turtleblocks.py
index 98d89d9..7f0ca8f 100755
--- a/turtleblocks.py
+++ b/turtleblocks.py
@@ -219,7 +219,8 @@ return %s(self)" % (p, P, P)
turtle_canvas=self.turtle_canvas,
activity=self, running_sugar=False)
self.tw.save_folder = self._abspath # os.path.expanduser('~')
- if self.client.get_int(self._HOVER_HELP) == 1:
+ if hasattr(self, 'client') and \
+ self.client.get_int(self._HOVER_HELP) == 1:
self.hover.set_active(False)
self._do_hover_help_off_cb(None)