From 4a151d13701791b91fae973fa853f5bd9317d47d Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 21 Feb 2016 10:25:45 +0100 Subject: [PATCH] prevent crash when a plugin is wrong. --- src/plugins/pluginmanager.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/plugins/pluginmanager.py b/src/plugins/pluginmanager.py index b1a3f9d33..0d292b278 100644 --- a/src/plugins/pluginmanager.py +++ b/src/plugins/pluginmanager.py @@ -480,10 +480,8 @@ class PluginManager(metaclass=Singleton): continue try: module = __import__(module_name) - except ValueError as value_error: - log.debug(str(value_error)) - except ImportError as import_error: - log.debug(str(import_error)) + except (ValueError, ImportError, AttributeError) as error: + log.debug(str(error)) if module is None: continue