summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-03-28 23:08:31 +0200
committermathieui <mathieui@mathieui.net>2012-03-28 23:08:31 +0200
commit791bcf19b17f5bd4f5638b16a6e6efcffcb9602c (patch)
tree858203046855f13a60f35835981b9ae85b681565 /src
parentb1cbbc62c86adaab10cd09e72258eb2f5e9aceb4 (diff)
downloadpoezio-791bcf19b17f5bd4f5638b16a6e6efcffcb9602c.tar.gz
poezio-791bcf19b17f5bd4f5638b16a6e6efcffcb9602c.tar.bz2
poezio-791bcf19b17f5bd4f5638b16a6e6efcffcb9602c.tar.xz
poezio-791bcf19b17f5bd4f5638b16a6e6efcffcb9602c.zip
Fixes #2347
Diffstat (limited to 'src')
-rw-r--r--src/plugin_manager.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugin_manager.py b/src/plugin_manager.py
index f414bb66..feae8aeb 100644
--- a/src/plugin_manager.py
+++ b/src/plugin_manager.py
@@ -2,9 +2,12 @@ import imp
import os
import sys
import tabs
+import logging
from config import config
from gettext import gettext as _
+log = logging.getLogger(__name__)
+
plugins_dir = config.get('plugins_dir', '')
plugins_dir = plugins_dir or\
os.path.join(os.environ.get('XDG_DATA_HOME') or\
@@ -56,7 +59,8 @@ class PluginManager(object):
imp.release_lock()
except Exception as e:
import traceback
- self.core.information(_("Could not load plugin: ") + traceback.format_exc(), 'Error')
+ log.debug("Could not load plugin: \n%s", traceback.format_exc())
+ self.core.information("Could not load plugin: %s" % e, 'Error')
return
finally:
if imp.lock_held():