3
0
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:
James Lu 2017-03-27 15:09:27 -07:00
parent ff0eda1fba
commit 657ed82958

2
pylink
View File

@ -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'):