From a6187895c7f0d2931335b59ca9dbc46b714aeff4 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 31 Mar 2012 01:28:11 +0200 Subject: Do not show the traceback if unloading a plugin failed --- src/plugin_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plugin_manager.py') diff --git a/src/plugin_manager.py b/src/plugin_manager.py index feae8aeb..98879841 100644 --- a/src/plugin_manager.py +++ b/src/plugin_manager.py @@ -104,7 +104,8 @@ class PluginManager(object): self.core.information('Plugin %s unloaded' % name, 'Info') except Exception as e: import traceback - self.core.information(_("Could not unload plugin (may not be safe to try again): ") + traceback.format_exc()) + log.debug("Could not unload plugin: \n%s", traceback.format_exc()) + self.core.information("Could not unload plugin: %s" % e, 'Error') def del_command(self, module_name, name): if name in self.commands[module_name]: -- cgit v1.2.3