Skip to content
Snippets Groups Projects
Commit 6ca2d76c authored by nicfit's avatar nicfit
Browse files

Fixed a traceback. Not sure how correct the contact=contact[0] is, but it...

Fixed a traceback.  Not sure how correct the contact=contact[0] is, but it handles the multiple return types from get_contact_from_full_jid
parent fd03586f
No related branches found
No related tags found
No related merge requests found
......@@ -246,8 +246,10 @@ class ConnectionCaps(object):
capscache.preload(con, jid, node, ver, exts)
contact=gajim.contacts.get_contact_from_full_jid(self.name, jid)
if contact is None:
if contact in [None, []]:
return # TODO: a way to put contact not-in-roster into Contacts
elif isinstance(contact, list):
contact = contact[0]
# overwriting old data
contact.caps_node=node
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment