From 2512f2907676d5b7c2e56336290cccc3a5fae0b2 Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Wed, 7 Sep 2011 10:31:34 +0300 Subject: [PATCH] pluginmanager.better exception handling when importing modules --- src/plugins/pluginmanager.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/pluginmanager.py b/src/plugins/pluginmanager.py index a7b81287b..0453c2973 100644 --- a/src/plugins/pluginmanager.py +++ b/src/plugins/pluginmanager.py @@ -415,9 +415,9 @@ class PluginManager(object): try: module = __import__(module_name) except ValueError, value_error: - pass + log.debug(value_error) except ImportError, import_error: - pass + log.debug(import_error) elif os.path.isdir(file_path) and scan_dirs: module_name = elem_name @@ -425,9 +425,9 @@ class PluginManager(object): try: module = __import__(module_name) except ValueError, value_error: - pass + log.debug(value_error) except ImportError, import_error: - pass + log.debug(import_error) if module is None: