Commit 42e1f2bc authored by Philipp Hörist's avatar Philipp Hörist

VCard: Fix requesting software version

parent 1dcb1785
Pipeline #6573 passed with stages
in 3 minutes and 14 seconds
......@@ -32,7 +32,7 @@
from gi.repository import GLib
from gi.repository import Gdk
from nbxmpp.structs import AnnotationNote
from nbxmpp.util import is_error_result
from nbxmpp.errors import StanzaError
from nbxmpp.protocol import JID
from nbxmpp.errors import is_error
......@@ -261,11 +261,18 @@ def _request_vcard(self, jid):
self._set_values(, str(jid))
def set_os_info(self, result, jid):
def set_os_info(self, task):
error = False
result = task.finish()
except StanzaError:
error = True
jid = task.get_user_data()
if self.xml.get_object('information_notebook').get_n_pages() < 5:
error = is_error_result(result)
i = 0
client = ''
os_info = ''
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment