diff options
author | Anton Khirnov <wyskas@gmail.com> | 2009-03-01 20:53:38 +0100 |
---|---|---|
committer | Anton Khirnov <wyskas@gmail.com> | 2009-03-01 20:53:38 +0100 |
commit | c5aecf3db2c36a179e7c0f3923d4b2bbf86e2797 (patch) | |
tree | 2fb7799b60973e85bc2c0246a6120761ec6be424 /nephilim/plugins/__init__.py | |
parent | 5c94ad10af074d2377037a5afca65e30df4fd46b (diff) |
print reason when plugin initialization fails.
Diffstat (limited to 'nephilim/plugins/__init__.py')
-rw-r--r-- | nephilim/plugins/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nephilim/plugins/__init__.py b/nephilim/plugins/__init__.py index 0e9caf5..e52334f 100644 --- a/nephilim/plugins/__init__.py +++ b/nephilim/plugins/__init__.py @@ -35,8 +35,8 @@ class Plugins: module = sys.modules[name] else: module = __import__(name, globals(), locals(), [], 1) - except SyntaxError: - logging.error('Failed to initialize plugin %s.'%name) + except SyntaxError, e: + logging.error('Failed to initialize plugin %s: %s.'%(name, e)) return False self._plugins[name] = eval('module.%s(self.parent)'%name) |