mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 04:59:24 +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:
|
||||
try:
|
||||
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))
|
||||
else:
|
||||
if hasattr(pl, 'main'):
|
||||
|
Loading…
Reference in New Issue
Block a user