Mercurial > libervia-backend
comparison sat/plugins/plugin_xep_0384.py @ 3976:db45d49518f6
plugin XEP-0384: log `import_error` when import is failing
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 10 Nov 2022 15:16:43 +0100 |
parents | 5fbdf986670c |
children | cd6f70015738 |
comparison
equal
deleted
inserted
replaced
3975:c4418949aa37 | 3976:db45d49518f6 |
---|---|
67 # attempted. | 67 # attempted. |
68 except ImportError as import_error: | 68 except ImportError as import_error: |
69 raise exceptions.MissingModule( | 69 raise exceptions.MissingModule( |
70 "You are missing one or more package required by the OMEMO plugin. Please" | 70 "You are missing one or more package required by the OMEMO plugin. Please" |
71 " download/install the pip packages 'omemo', 'twomemo', 'oldmemo' and" | 71 " download/install the pip packages 'omemo', 'twomemo', 'oldmemo' and" |
72 " 'xmlschema'." | 72 f" 'xmlschema'.\nexception: {import_error}" |
73 ) from import_error | 73 ) from import_error |
74 | 74 |
75 | 75 |
76 __all__ = [ # pylint: disable=unused-variable | 76 __all__ = [ # pylint: disable=unused-variable |
77 "PLUGIN_INFO", | 77 "PLUGIN_INFO", |