changeset 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 f69c1b260e49
files sat_frontends/jp/base.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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