From 1cf55c14b0498843314f471c200b7c0d8515ec96 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Sun, 29 Apr 2012 13:33:30 -0700 Subject: Don't raise errors when receiving an iq error for vcards. --- sleekxmpp/plugins/xep_0054/vcard_temp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sleekxmpp/plugins/xep_0054/vcard_temp.py b/sleekxmpp/plugins/xep_0054/vcard_temp.py index b9096759..2c462037 100644 --- a/sleekxmpp/plugins/xep_0054/vcard_temp.py +++ b/sleekxmpp/plugins/xep_0054/vcard_temp.py @@ -114,7 +114,7 @@ class XEP_0054(BasePlugin): iq.reply() iq.append(vcard) iq.send() - else: + elif iq['type'] == 'set': raise XMPPError('service-unavailable') # ================================================================= -- cgit v1.2.3