From 10c81318304b323c0898c99d566c1fdea78e78b2 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Sun, 02 Sep 2012 18:50:40 +0000 Subject: never fail to start if a plugin fails to load --- 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. ''' -- cgit v0.9.1