Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tawindow.py
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2013-10-08 17:55:31 (GMT)
committer Walter Bender <walter@sugarlabs.org>2013-10-08 17:55:31 (GMT)
commit9cc5006336d1f52bb5bf9c96101f7be03ed8d431 (patch)
tree8747d86eea87becd370a606417bc088dd89e62a0 /TurtleArt/tawindow.py
parent824ff6dec125e6b6de0067271be807a188c70fe8 (diff)
remove faulty plugins from list
Diffstat (limited to 'TurtleArt/tawindow.py')
-rw-r--r--TurtleArt/tawindow.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py
index 785a666..383d513 100644
--- a/TurtleArt/tawindow.py
+++ b/TurtleArt/tawindow.py
@@ -382,6 +382,7 @@ class TurtleArtWindow():
except Exception as e:
debug_output('Failed to load %s: %s' % (plugin_class, str(e)),
self.running_sugar)
+
def _add_plugin_icon_dir(self, dirname):
''' If there is an icon subdir, add it to the search path. '''
@@ -409,6 +410,8 @@ class TurtleArtWindow():
except Exception as e:
debug_output('Plugin %s failed during setup: %s' %
(plugin_class, str(e)), self.running_sugar)
+ # If setup fails, remove the plugin from the list
+ self.turtleart_plugins.remove(plugin)
def _start_plugins(self):
''' Start is called everytime we execute blocks. '''