prevent a traceback when we get a wrong disco#info reply (a feature without a var attribute). Fixes #5232
This commit is contained in:
parent
e0dac306f7
commit
ea6c062b9a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue