TB in console when receiving error message
I have the following traceback in console :
Traceback (most recent call last):
File "/home/misc/checkout/svn/gajim/src/common/xmpp/idlequeue.py", line 132, in process_events
obj.pollin()
File "/home/misc/checkout/svn/gajim/src/common/xmpp/transports_nb.py", line 361, in pollin
self._do_receive()
File "/home/misc/checkout/svn/gajim/src/common/xmpp/transports_nb.py", line 500, in _do_receive
self.on_receive(received)
File "/home/misc/checkout/svn/gajim/src/common/xmpp/dispatcher_nb.py", line 364, in WaitForData
res = self.ProcessNonBlocking(data)
File "/home/misc/checkout/svn/gajim/src/common/xmpp/dispatcher_nb.py", line 352, in dispatch
handler['func'](session,stanza)
File "/home/misc/checkout/svn/gajim/src/common/caps.py", line 254, in _capsPresenceCB
contact.caps_node=node
AttributeError: 'list' object has no attribute 'caps_node'
After some debbuging, it happens for two of my contact, each of them being on a non working domain :
\<presence from='gerald@example.net' to='misc@example.org/Appart' type='error'>
\<error code='404' type='cancel'>
\<remote-server-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
\</error>
\</presence>
\<presence from='gerald@example.net' to='misc@example.org/Appart' type='error' id='82'>
\<priority>50\</priority>
\<x xmlns='vcard-temp:x:update'>
\<photo>08f28011465cbf05e88116ae47ea2cd0b597e351\</photo>
\</x>
\<c xmlns='http://jabber.org/protocol/caps' node='http://gajim.org/caps' ext='cstates' ver='0.11.1.1'/>
\<x xmlns='jabber:x:signed'>iD8DBQBGhUGrV4O4NPyd6kIRAqvwAKDFHkjI0u1P9RoAVLWCcsZZlk49ygCfahsd
3GrPPwQmLgJnzhyq+6ydjTI=
=L+St\</x>
\<error code='404' type='cancel'>
\<remote-server-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
\</error>
\</presence>
According to some debbugging, it seems the problem comes from :
contact=gajim.contacts.get_contact_from_full_jid(self.name, jid)
contact is a list, of one element, of type contact.