Traceback on outbound message
When I send a message, this is output to console:
15:39:50 (E) gajim.c.ged Error while running an even handler: \<bound method Connection._nec_message_outgoing of \<common.connection.Connection object at 0x1cde810>>
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/gajim/common/ged.py", line 93, in raise_event
if handler(*args, **kwargs):
File "/usr/lib64/python2.7/site-packages/gajim/common/connection.py", line 2018, in _nec_message_outgoing
correction_msg=obj.correction_msg, callback=cb)
File "/usr/lib64/python2.7/site-packages/gajim/common/connection.py", line 334, in _prepare_message
attention, correction_msg, callback)
File "/usr/lib64/python2.7/site-packages/gajim/common/connection.py", line 464, in _on_continue_message
subject, type_, msg_iq, xhtml)
File "/usr/lib64/python2.7/site-packages/gajim/common/connection.py", line 2005, in cb
obj.callback(msg_iq, *obj.callback_args)
File "/usr/lib64/python2.7/site-packages/gajim/chat_control.py", line 905, in _cb
cb(msg, *cb_args)
File "/usr/lib64/python2.7/site-packages/gajim/chat_control.py", line 2388, in _on_sent
displaymarking=displaymarking)
File "/usr/lib64/python2.7/site-packages/gajim/chat_control.py", line 2570, in print_conversation
msg_id=msg_id, correct_id=correct_id)
File "/usr/lib64/python2.7/site-packages/gajim/chat_control.py", line 991, in print_conversation_line
self.last_received_id[name] = correct_id[0]
TypeError: 'NoneType' object has no attribute '__getitem__'
I'm using latest hg source. It seems to be related to the changeset 14497:3107b848a275. The problem is that correct_id is None for outbound messages, adding condition if correct_id:
in front of the self.last_received_id[name] = correct_id[0]
solves the problem for me (but I'm not sure if it is the correct solution, though).
The side effect of this is the outbound message is not stored in history.
It works fine for incoming messages.