summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-03-31 01:28:11 +0200
committermathieui <mathieui@mathieui.net>2012-03-31 01:28:11 +0200
commita6187895c7f0d2931335b59ca9dbc46b714aeff4 (patch)
tree7e360d0a0e931509ddfa3ac5b118132c58d82b79
parent57e586531db1893849a73b27f8b7dea263b96a82 (diff)
downloadpoezio-a6187895c7f0d2931335b59ca9dbc46b714aeff4.tar.gz
poezio-a6187895c7f0d2931335b59ca9dbc46b714aeff4.tar.bz2
poezio-a6187895c7f0d2931335b59ca9dbc46b714aeff4.tar.xz
poezio-a6187895c7f0d2931335b59ca9dbc46b714aeff4.zip
Do not show the traceback if unloading a plugin failed
-rw-r--r--src/plugin_manager.py3
1 files changed, 2 insertions, 1 deletions
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]: