Mercurial > libervia-backend
diff src/plugins/plugin_adhoc_dbus.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 | 9a4e95c62380 |
children | d17772b0fe22 |
line wrap: on
line diff
--- a/src/plugins/plugin_adhoc_dbus.py Wed Sep 30 17:24:21 2015 +0200 +++ b/src/plugins/plugin_adhoc_dbus.py Wed Sep 30 17:25:09 2015 +0200 @@ -24,8 +24,11 @@ from sat.core import exceptions from twisted.internet import defer from wokkel import data_form -from lxml import etree -from os import path +try: + from lxml import etree +except ImportError: + raise exceptions.MissingModule(u"Missing module lxml, please download/install it from http://lxml.de/") +import os.path import uuid import dbus from dbus.mainloop.glib import DBusGMainLoop