diff options
author | Anton Khirnov <wyskas@gmail.com> | 2009-08-19 14:47:01 +0200 |
---|---|---|
committer | Anton Khirnov <wyskas@gmail.com> | 2009-08-19 14:47:01 +0200 |
commit | 1307c71c790cc7a2da7f40b3b2f17d340ede0b8c (patch) | |
tree | a260fc5fe81c3b154e830e1e5610107ec21168bd /nephilim/plugins/__init__.py | |
parent | 0af2ee5edee247a16fbe0a2c18cff6116f196679 (diff) |
plugins: handle ImportError when importing plugins.
Diffstat (limited to 'nephilim/plugins/__init__.py')
-rw-r--r-- | nephilim/plugins/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nephilim/plugins/__init__.py b/nephilim/plugins/__init__.py index 0b68b7e..71ee2c4 100644 --- a/nephilim/plugins/__init__.py +++ b/nephilim/plugins/__init__.py @@ -43,7 +43,7 @@ class Plugins: module = sys.modules[name] else: module = __import__(name, globals(), locals(), [], 1) - except SyntaxError, e: + except (SyntaxError, ImportError), e: logging.error('Failed to initialize plugin %s: %s.'%(name, e)) return False |