logo       

PyMSNt sends error without namespace: msg#00216

network.jabber.py-transports

Subject: PyMSNt sends error without namespace

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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise