Mercurial > libervia-backend
diff libervia/cli/base.py @ 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 | d01b8d002619 |
children | 0d7bb4df2343 |
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_):