Merge branch 'log-plugin-loading' into 'master'

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

See merge request poezio/poezio!76
This commit is contained in:
Maxime Buquet 2020-04-01 00:40:54 +02:00
commit dd536d9e62

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: