fix traceback when we get an error from pep service. see #3053
This commit is contained in:
parent
19761f081f
commit
554194d954
|
@ -1122,6 +1122,7 @@ class ConnectionVcard:
|
||||||
conf = iq_obj.getTag('pubsub').getTag('configure')
|
conf = iq_obj.getTag('pubsub').getTag('configure')
|
||||||
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:
|
||||||
form = common.dataforms.ExtendForm(node=form_tag)
|
form = common.dataforms.ExtendForm(node=form_tag)
|
||||||
for field in form.iter_fields():
|
for field in form.iter_fields():
|
||||||
if field.var == 'pubsub#access_model':
|
if field.var == 'pubsub#access_model':
|
||||||
|
|
Loading…
Reference in New Issue