Skip to content
Snippets Groups Projects
Commit ea6c062b authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

prevent a traceback when we get a wrong disco#info reply (a feature without a...

prevent a traceback when we get a wrong disco#info reply (a feature without a var attribute). Fixes #5232
parent e0dac306
No related branches found
No related tags found
No related merge requests found
......@@ -871,7 +871,9 @@ class ConnectionDisco:
is_muc = True
identities.append(attr)
elif i.getName() == 'feature':
features.append(i.getAttr('var'))
var = i.getAttr('var')
if var:
features.append(var)
elif i.getName() == 'x' and i.getNamespace() == common.xmpp.NS_DATA:
data.append(common.xmpp.DataForm(node=i))
jid = helpers.get_full_jid_from_iq(iq_obj)
......
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