Disconnects from server after receiving specific vCard.
When I try to get a user info gajim is disconnected from the server. Here is the vcard and the traceback:
DEBUG: socket got \<iq type='result' id='9' to='dkirov@jabber.minus273.org/\u0420\u0430\u0431\u043e\u0442\u0430' from='gamar@jabber.minus273.org/Miranda'>\<query xmlns='jabber:iq:version'>\<name>Jabber Protocol Plugin (Miranda IM 0.3.3.1)\</name>\<version>0.1.1.8\</version>\<os>Windows XP\</os>\</query>\</iq>\<iq to='dkirov@jabber.minus273.org/\u0420\u0430\u0431\u043e\u0442\u0430' type='result' id='10' from='gamar@jabber.minus273.org'>\<vCard xmlns='vcard-temp'>\<FN/>\<N>\<GIVEN/>\<MIDDLE/>\<FAMILY/>\</N>\<NICKNAME>gamar\</NICKNAME>\<BDAY/>\<GENDER/>\<ADR>\<HOME/>\<STREET/>\<EXTADR/>\<EXTADD/>\<LOCALITY/>\<REGION/>\<PCODE/>\<CTRY/>\<COUNTRY/>\</ADR>\<ADR>\<WORK/>\<STREET/>\<EXTADR/>\<EXTADD/>\<LOCALITY/>\<REGION/>\<PCODE/>\<CTRY/>\<COUNTRY/>\</ADR>\<ORG>\<ORGNAME/>\<ORGUNIT/>\</ORG>\<TITLE/>\<ROLE/>\<URL/>\<DESC/>\<PHOTO/>\</vCard>\</iq>
DEBUG: dispatcher ok Got iq stanza
DEBUG: dispatcher ok Dispatching iq stanza with type->result props->[u'jabber:iq:version'] id->9
10 \uffff\uffff\uffff 2005 15:21:18 Gajim: VersionResultCB
DEBUG: dispatcher ok Got iq stanza
DEBUG: dispatcher ok Dispatching iq stanza with type->result props->[u'vcard-temp'] id->10
10 \uffff\uffff\uffff 2005 15:21:18 Gajim: error appeared while processing xmpp:
Traceback (most recent call last):
File "/home/segundo/gajim/src/common/connection.py", line 1141, in process
self.connection.Process(timeout)
File "/home/segundo/gajim/src/common/xmpp/dispatcher.py", line 122, in Process self.Stream.Parse(data)
File "/home/segundo/gajim/src/common/xmpp/simplexml.py", line 336, in endtag
self.dispatch(self._mini_dom)
File "/home/segundo/gajim/src/common/xmpp/dispatcher.py", line 286, in dispatch
handler['func'](session,stanza)
File "/home/segundo/gajim/src/common/connection.py", line 196, in _vCardCB
self.dispatch('VCARD', vcard)
File "/home/segundo/gajim/src/common/connection.py", line 142, in dispatch
handler(self.name, data)
File "./gajim.py", line 508, in handle_event_vcard
self.windows[account]['infos'][array['jid']].set_values(array)
File "/home/segundo/gajim/src/vcard.py", line 141, in set_values
if vcard[i].has_key('BINVAL') and vcard[i].has_key('TYPE'):
AttributeError: 'str' object has no attribute 'has_key'
DEBUG: socket sent \</stream:stream>
DEBUG: socket error Socket error while receiving data