plugin_manager: log on every Exception that caused plugin loading to fail

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2020-03-31 23:26:42 +02:00
parent 3c6a74b726
commit 18bf537570
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -83,7 +83,7 @@ class PluginManager:
log.debug('Found candidate entry for plugin %s: %r', name, entry) log.debug('Found candidate entry for plugin %s: %r', name, entry)
try: try:
module = entry.load() module = entry.load()
except ImportError as exn: except Exception as exn:
log.debug('Failed to import plugin: %s\n%r', name, log.debug('Failed to import plugin: %s\n%r', name,
exn, exc_info=True) exn, exc_info=True)
finally: finally: