comparison src/plugins/plugin_xep_0071.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 069ad98b360d
children cf11cfc87ef9
comparison
equal deleted inserted replaced
1541:685fad1c18e4 1542:94901070478e
23 log = getLogger(__name__) 23 log = getLogger(__name__)
24 24
25 from wokkel import disco, iwokkel 25 from wokkel import disco, iwokkel
26 from zope.interface import implements 26 from zope.interface import implements
27 # from lxml import etree 27 # from lxml import etree
28 from lxml import html 28 try:
29 from lxml import html
30 except ImportError:
31 raise exceptions.MissingModule(u"Missing module lxml, please download/install it from http://lxml.de/")
29 try: 32 try:
30 from twisted.words.protocols.xmlstream import XMPPHandler 33 from twisted.words.protocols.xmlstream import XMPPHandler
31 except ImportError: 34 except ImportError:
32 from wokkel.subprotocols import XMPPHandler 35 from wokkel.subprotocols import XMPPHandler
33 36