From 9cc5006336d1f52bb5bf9c96101f7be03ed8d431 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Tue, 08 Oct 2013 17:55:31 +0000 Subject: remove faulty plugins from list --- (limited to 'TurtleArt') 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. ''' -- cgit v0.9.1