diff 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
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0071.py	Wed Sep 30 17:24:21 2015 +0200
+++ b/src/plugins/plugin_xep_0071.py	Wed Sep 30 17:25:09 2015 +0200
@@ -25,7 +25,10 @@
 from wokkel import disco, iwokkel
 from zope.interface import implements
 # from lxml import etree
-from lxml import html
+try:
+    from lxml import html
+except ImportError:
+    raise exceptions.MissingModule(u"Missing module lxml, please download/install it from http://lxml.de/")
 try:
     from twisted.words.protocols.xmlstream import XMPPHandler
 except ImportError: