Traceback: AttributeError: 'NoneType' object has no attribute 'supports', similar to #5346 and #5375
The bug occurs following the same steps outlined in #5346 (closed) and #5375 (closed). It's another traceback.
Environment
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) on Ubuntu 9.04.
It's on hg checkout 8ecf073f3d76.
Setup
-
Start Gajim normally, client is called Machine
-
Start Gajim on another machine, called Test
-
Login Machine on account foo@jabber.org, ressource is Machine and set status to available for foo@jabber.org/Machine
-
Login Test on account foo@jabber.org, ressource is Test and set status to invisible for foo@jabber.org/Test
-
On Machine, select Action - Start Chat - Account jabber.org and enter foo@jabber.org/Test. A chat window opens. Type some text and send it. The traceback appears. The text will only be sent after hitting return again. The text is received on Test. Answers from test are received. The following traceback shows up:
Traceback (most recent call last): File "/usr/local/gajim/share/gajim/src/chat_control.py", line 648, in _on_message_textview_mykeypress_event self.send_message(message, xhtml=xhtml) # send the message File "/usr/local/gajim/share/gajim/src/chat_control.py", line 1995, in send_message process_commands=process_commands) File "/usr/local/gajim/share/gajim/src/chat_control.py", line 684, in send_message callback=callback, callback_args=callback_args) File "/usr/local/gajim/share/gajim/src/message_control.py", line 208, in send_message callback_args=callback_args) File "/usr/local/gajim/share/gajim/src/common/connection.py", line 1242, in send_message callback_args) File "/usr/local/gajim/share/gajim/src/common/connection.py", line 1330, in _on_continue_message 'request_receipt') and contact.supports(common.xmpp.NS_RECEIPTS): AttributeError: 'NoneType' object has no attribute 'supports'