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>2012-09-02 18:50:40 (GMT)
committer Walter Bender <walter.bender@gmail.com>2012-09-02 18:50:40 (GMT)
commit10c81318304b323c0898c99d566c1fdea78e78b2 (patch)
treedb0a687de2de953a85c53d5b4b32f012e263905f /TurtleArt
parenta910a282c1e668221a131fd7b4ec35c820fb19be (diff)
never fail to start if a plugin fails to load
Diffstat (limited to 'TurtleArt')
-rw-r--r--TurtleArt/tawindow.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py
index 3f1f4ca..8706860 100644
--- a/TurtleArt/tawindow.py
+++ b/TurtleArt/tawindow.py
@@ -321,9 +321,12 @@ class TurtleArtWindow():
# Add the icon dir to the icon_theme search path
self._add_plugin_icon_dir(os.path.join(self._get_plugin_home(),
plugin_dir))
- except ImportError, e:
+ except ImportError as e:
debug_output('Failed to import %s: %s' % (plugin_class, str(e)),
self.running_sugar)
+ except:
+ debug_output('Failed to import %s' % (plugin_class),
+ self.running_sugar)
def _add_plugin_icon_dir(self, dirname):
''' If there is an icon subdir, add it to the search path. '''