Skip to content
Snippets Groups Projects
Commit 07d552b6 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

prevent traceback when trying to print error message in a non existing message window. Fixes #5036

parent 7d725fc1
No related branches found
No related tags found
No related merge requests found
......@@ -953,6 +953,10 @@ class Interface:
#('MSGNOTSENT', account, (jid, ierror_msg, msg, time, session))
msg = _('error while sending %(message)s ( %(error)s )') % {
'message': array[2], 'error': array[1]}
if not array[4]:
# No session. This can happen when sending a message from gajim-remote
log.warn(msg)
return
array[4].roster_message(array[0], msg, array[3], account,
msg_type='error')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment