From aa10a033b9d06455bc7999a771039709511b059a Mon Sep 17 00:00:00 2001 From: Goffi Date: Fri, 14 Sep 2018 16:44:34 +0200 Subject: [PATCH] jp: fixed bad call to quit --- sat_frontends/jp/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sat_frontends/jp/base.py b/sat_frontends/jp/base.py index bcb7bff9..173a2fcd 100644 --- a/sat_frontends/jp/base.py +++ b/sat_frontends/jp/base.py @@ -467,7 +467,7 @@ class Jp(object): 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 @@ class Jp(object): 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