prevent crash when a plugin is wrong.
This commit is contained in:
parent
7a4161c759
commit
4a151d1370
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue