Mercurial > libervia-backend
diff sat_frontends/jp/base.py @ 2672:0bed6df9ee5d
jp: fixed bad call to quit
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 14 Sep 2018 16:44:34 +0200 |
parents | 0fa217fafabf |
children | 7d4679ee7ded |
line wrap: on
line diff
--- a/sat_frontends/jp/base.py Mon Sep 10 08:58:18 2018 +0200 +++ b/sat_frontends/jp/base.py Fri Sep 14 16:44:34 2018 +0200 @@ -467,7 +467,7 @@ from lxml import etree except ImportError: self.disp(u"lxml module must be installed to use http(s) scheme, please install it with \"pip install lxml\"", error=True) - self.host.quit(1) + self.quit(1) import urllib2 parser = etree.HTMLParser() try: @@ -479,7 +479,7 @@ links = root.xpath("//link[@rel='alternate' and starts-with(@href, 'xmpp:')]") if not links: self.disp(u'Could not find alternate "xmpp:" URI, can\'t find associated XMPP PubSub node/item', error=True) - self.host.quit(1) + self.quit(1) xmpp_uri = links[0].get('href') return xmpp_uri