From ed28b14b82399525fadb1f7dff98a5a0e250a237 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 5 May 2010 19:32:18 +0200 Subject: [PATCH] prevent some traceback when receiving an error when we want to configure pep. Fixes #5737 --- src/common/connection_handlers.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index 2ffc5549a..db0d3a590 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -674,7 +674,13 @@ class ConnectionVcard: # Ask metacontacts before roster self.get_metacontacts() 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') + if not conf: + return node = conf.getAttr('node') form_tag = conf.getTag('x', namespace=common.xmpp.NS_DATA) if form_tag: