mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-18 22:40:44 +01:00
launcher: catch all errors when loading plugins, not just ImportError / OSError
This commit is contained in:
parent
ff0eda1fba
commit
657ed82958
2
pylink
2
pylink
@ -68,7 +68,7 @@ if __name__ == '__main__':
|
|||||||
for plugin in to_load:
|
for plugin in to_load:
|
||||||
try:
|
try:
|
||||||
world.plugins[plugin] = pl = utils.loadPlugin(plugin)
|
world.plugins[plugin] = pl = utils.loadPlugin(plugin)
|
||||||
except (OSError, ImportError) as e:
|
except Exception as e:
|
||||||
log.exception('Failed to load plugin %r: %s: %s', plugin, type(e).__name__, str(e))
|
log.exception('Failed to load plugin %r: %s: %s', plugin, type(e).__name__, str(e))
|
||||||
else:
|
else:
|
||||||
if hasattr(pl, 'main'):
|
if hasattr(pl, 'main'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user