diff options
author | Walter Bender <walter@sugarlabs.org> | 2013-10-08 18:19:03 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2013-10-08 18:19:03 (GMT) |
commit | db3dc06d33c7ef0e5dc868a9ec87d29eb89ca24a (patch) | |
tree | 9c0e6b42320ee3b4bee0efc4f248d2e1ddc7df59 | |
parent | 5b9475f907e046001296e17f3680bdea78a7a864 (diff) |
fixed bad debug output string
-rw-r--r-- | TurtleArt/tawindow.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py index 383d513..2bd720e 100644 --- a/TurtleArt/tawindow.py +++ b/TurtleArt/tawindow.py @@ -409,7 +409,7 @@ class TurtleArtWindow(): plugin.setup() except Exception as e: debug_output('Plugin %s failed during setup: %s' % - (plugin_class, str(e)), self.running_sugar) + (plugin, str(e)), self.running_sugar) # If setup fails, remove the plugin from the list self.turtleart_plugins.remove(plugin) @@ -421,7 +421,7 @@ class TurtleArtWindow(): plugin.start() except Exception as e: debug_output('Plugin %s failed during start: %s' % - (plugin_class, str(e)), self.running_sugar) + (plugin, str(e)), self.running_sugar) def stop_plugins(self): ''' Stop is called whenever we stop execution. ''' @@ -431,7 +431,7 @@ class TurtleArtWindow(): plugin.stop() except Exception as e: debug_output('Plugin %s failed during stop: %s' % - (plugin_class, str(e)), self.running_sugar) + (plugin, str(e)), self.running_sugar) def clear_plugins(self): ''' Clear is called from the clean block and erase button. ''' @@ -441,7 +441,7 @@ class TurtleArtWindow(): plugin.clear() except Exception as e: debug_output('Plugin %s failed during clear: %s' % - (plugin_class, str(e)), self.running_sugar) + (plugin, str(e)), self.running_sugar) def background_plugins(self): ''' Background is called when we are pushed to the background. ''' @@ -451,7 +451,7 @@ class TurtleArtWindow(): plugin.goto_background() except Exception as e: debug_output('Plugin %s failed during background: %s' % - (plugin_class, str(e)), self.running_sugar) + (plugin, str(e)), self.running_sugar) def foreground_plugins(self): ''' Foreground is called when we are return from the background. ''' @@ -461,7 +461,7 @@ class TurtleArtWindow(): plugin.return_to_foreground() except Exception as e: debug_output('Plugin %s failed during foreground: %s' % - (plugin_class, str(e)), self.running_sugar) + (plugin, str(e)), self.running_sugar) def quit_plugins(self): ''' Quit is called upon program exit. ''' @@ -471,7 +471,7 @@ class TurtleArtWindow(): plugin.quit() except Exception as e: debug_output('Plugin %s failed during quit: %s' % - (plugin_class, str(e)), self.running_sugar) + (plugin, str(e)), self.running_sugar) def _setup_events(self): ''' Register the events we listen to. ''' |