Mercurial > libervia-backend
changeset 4253:5115976e1e3d
cli (base): catch all failure on plugin importing.
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 31 May 2024 11:22:10 +0200 |
parents | 02a7860486b5 |
children | 2b2a5348bd61 |
files | libervia/cli/base.py |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/libervia/cli/base.py Fri May 31 11:18:12 2024 +0200 +++ b/libervia/cli/base.py Fri May 31 11:22:10 2024 +0200 @@ -537,17 +537,17 @@ try: module = import_module(module_path) self.import_plugin_module(module, type_) - except ImportError as e: - self.disp( - _("Can't import {module_path} plugin, ignoring it: {e}") - .format(module_path=module_path, e=e), - error=True) except exceptions.CancelError: continue except exceptions.MissingModule as e: self.disp(_("Missing module for plugin {name}: {missing}".format( name = module_path, missing = e)), error=True) + except Exception as e: + self.disp( + _("Can't import {module_path} plugin, ignoring it: {e}") + .format(module_path=module_path, e=e), + error=True) def import_plugin_module(self, module, type_):