From 638001245a0f996d98f7a4c430c0acc58b883091 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Tue, 22 Nov 2011 02:51:54 +0000 Subject: report error string from ImportError when patch fails to load (rgs) --- (limited to 'turtleart.py') diff --git a/turtleart.py b/turtleart.py index 9669e21..52192d5 100755 --- a/turtleart.py +++ b/turtleart.py @@ -131,8 +131,8 @@ class TurtleMain(): try: exec f in globals(), plugin self._plugins.append(plugin.values()[0](self)) - except ImportError: - print 'failed to import %s' % (P) + except ImportError as e: + print 'failed to import %s: %s' % (P, str(e)) def _run_plugins(self): ''' Tell the plugin about the TurtleWindow instance. ''' -- cgit v0.9.1