prevent crash when a plugin is wrong.

This commit is contained in:
Yann Leboulanger 2016-02-21 10:25:45 +01:00
parent 7a4161c759
commit 4a151d1370
1 changed files with 2 additions and 4 deletions

View File

@ -480,10 +480,8 @@ class PluginManager(metaclass=Singleton):
continue continue
try: try:
module = __import__(module_name) module = __import__(module_name)
except ValueError as value_error: except (ValueError, ImportError, AttributeError) as error:
log.debug(str(value_error)) log.debug(str(error))
except ImportError as import_error:
log.debug(str(import_error))
if module is None: if module is None:
continue continue