plugin text syntaxes: update exception message to be more explicit when lxml_html_clean is missing.
This commit is contained in:
parent
9173aa104e
commit
8443ddac65
1 changed files with 9 additions and 2 deletions
|
|
@ -33,11 +33,18 @@ from libervia.backend.tools import xml_tools
|
|||
|
||||
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__)
|
||||
|
|
|
|||
Loading…
Reference in a new issue