diff options
author | Walter Bender <walter.bender@gmail.com> | 2011-11-22 02:51:54 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2011-11-22 02:51:54 (GMT) |
commit | 638001245a0f996d98f7a4c430c0acc58b883091 (patch) | |
tree | 26e55e0e2d51d977a0bddb3b0392651f9a1d2325 /turtleart.py | |
parent | 5cda0eb0f6b78f13210e8b5b6cbfdd70296d871e (diff) |
report error string from ImportError when patch fails to load (rgs)
Diffstat (limited to 'turtleart.py')
-rwxr-xr-x | turtleart.py | 4 |
1 files changed, 2 insertions, 2 deletions
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. ''' |