plugins: added new MissingModule exceptions to plugins using third party modules
This commit is contained in:
parent
72b108f3a2
commit
969af13f59
6 changed files with 29 additions and 11 deletions
|
|
@ -24,8 +24,11 @@ log = getLogger(__name__)
|
|||
from twisted.internet import defer
|
||||
from twisted.internet.threads import deferToThread
|
||||
from sat.core import exceptions
|
||||
from lxml import html
|
||||
from lxml.html import clean
|
||||
try:
|
||||
from lxml import html
|
||||
from lxml.html import clean
|
||||
except ImportError:
|
||||
raise exceptions.MissingModule(u"Missing module lxml, please download/install it from http://lxml.de/")
|
||||
from cgi import escape
|
||||
import re
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue