|
|
Re: PyMSNt sends error without namespace: msg#00227
network.jabber.py-transports
|
Subject: |
Re: PyMSNt sends error without namespace |
On 27/03/2006, at 4:24 AM, Magnus Henoch wrote:
I tried to get the vCard of an MSN user not in my contact list.
PyMSNt (trunk) returned an error message, <recipient-unavailable/>,
but didn't include a namespace declaration on the error element. I
think this patch would fix it:
Index: disco.py
===================================================================
--- disco.py (revision 131)
+++ disco.py (working copy)
@@ -232,6 +232,7 @@
error.attributes["type"] = etype
error.attributes["code"] = str(utils.errorCodeMap[condition])
cond = error.addElement(condition)
+ cond.attributes["xmlns"] = XMPP_STANZAS
self.pytrans.send(el)
Magnus
Thanks. Fixed now :)
---
James
|
|