prevent some traceback when receiving an error when we want to configure pep. Fixes #5737
Questo commit è contenuto in:
parent
e6a4eb7c17
commit
ed28b14b82
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
|
|
@ -674,7 +674,13 @@ class ConnectionVcard:
|
||||||
# Ask metacontacts before roster
|
# Ask metacontacts before roster
|
||||||
self.get_metacontacts()
|
self.get_metacontacts()
|
||||||
elif self.awaiting_answers[id_][0] == PEP_CONFIG:
|
elif self.awaiting_answers[id_][0] == PEP_CONFIG:
|
||||||
|
if iq_obj.getType() == 'error':
|
||||||
|
return
|
||||||
|
if not iq_obj.getTag('pubsub'):
|
||||||
|
return
|
||||||
conf = iq_obj.getTag('pubsub').getTag('configure')
|
conf = iq_obj.getTag('pubsub').getTag('configure')
|
||||||
|
if not conf:
|
||||||
|
return
|
||||||
node = conf.getAttr('node')
|
node = conf.getAttr('node')
|
||||||
form_tag = conf.getTag('x', namespace=common.xmpp.NS_DATA)
|
form_tag = conf.getTag('x', namespace=common.xmpp.NS_DATA)
|
||||||
if form_tag:
|
if form_tag:
|
||||||
|
|
|
||||||
Caricamento…
Add table
Crea riferimento in una nuova segnalazione