plugins: added new MissingModule exceptions to plugins using third party modules

This commit is contained in:
Goffi 2015-09-30 17:25:09 +02:00
commit 969af13f59
6 changed files with 29 additions and 11 deletions

View file

@ -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