diff options
author | mathieui <mathieui@mathieui.net> | 2012-03-31 01:28:11 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-03-31 01:28:11 +0200 |
commit | a6187895c7f0d2931335b59ca9dbc46b714aeff4 (patch) | |
tree | 7e360d0a0e931509ddfa3ac5b118132c58d82b79 | |
parent | 57e586531db1893849a73b27f8b7dea263b96a82 (diff) | |
download | poezio-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.py | 3 |
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]: |