# HG changeset patch # User Goffi # Date 1732098643 -3600 # Node ID 45662662a4320798f29485ae19db34a52f2a0088 # Parent e1fcf4dd9012562319827b52989df3641e1ff876 plugin text syntaxes: update exception message to be more explicit when `lxml_html_clean` is missing. diff -r e1fcf4dd9012 -r 45662662a432 libervia/backend/plugins/plugin_misc_text_syntaxes.py --- a/libervia/backend/plugins/plugin_misc_text_syntaxes.py Wed Nov 20 11:29:36 2024 +0100 +++ b/libervia/backend/plugins/plugin_misc_text_syntaxes.py Wed Nov 20 11:30:43 2024 +0100 @@ -33,11 +33,18 @@ try: from lxml import html - from lxml.html import clean from lxml import etree except ImportError: raise exceptions.MissingModule( - "Missing module lxml, please download/install it from http://lxml.de/" + 'Missing module "lxml", please download/install it from http://lxml.de/' + ) +try: + from lxml.html import clean +except ImportError: + raise exceptions.MissingModule( + 'Missing module "lxml_html_clean". Please download and install it from ' + 'http://lxml.de/. Note that this is a separate package to install in addition ' + 'to "lxml".' ) log = getLogger(__name__)