comparison src/plugins/plugin_misc_text_syntaxes.py @ 1542:94901070478e

plugins: added new MissingModule exceptions to plugins using third party modules
author Goffi <goffi@goffi.org>
date Wed, 30 Sep 2015 17:25:09 +0200
parents 832846fefe85
children d17772b0fe22
comparison
equal deleted inserted replaced
1541:685fad1c18e4 1542:94901070478e
22 log = getLogger(__name__) 22 log = getLogger(__name__)
23 23
24 from twisted.internet import defer 24 from twisted.internet import defer
25 from twisted.internet.threads import deferToThread 25 from twisted.internet.threads import deferToThread
26 from sat.core import exceptions 26 from sat.core import exceptions
27 from lxml import html 27 try:
28 from lxml.html import clean 28 from lxml import html
29 from lxml.html import clean
30 except ImportError:
31 raise exceptions.MissingModule(u"Missing module lxml, please download/install it from http://lxml.de/")
29 from cgi import escape 32 from cgi import escape
30 import re 33 import re
31 34
32 35
33 CATEGORY = D_("Composition") 36 CATEGORY = D_("Composition")