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

prevent traceback

parent c4365f7a
No related branches found
No related tags found
No related merge requests found
...@@ -1191,7 +1191,7 @@ def get_notification_icon_tooltip_dict(): ...@@ -1191,7 +1191,7 @@ def get_notification_icon_tooltip_dict():
'%d event pending', '%d event pending',
'%d events pending', '%d events pending',
total_non_messages, total_non_messages, total_non_messages) total_non_messages, total_non_messages, total_non_messages)
accounts[account]['event_lines'].append(text) account['event_lines'].append(text)
else: else:
for jid in non_messages.keys(): for jid in non_messages.keys():
text = ngettext( text = ngettext(
...@@ -1199,7 +1199,7 @@ def get_notification_icon_tooltip_dict(): ...@@ -1199,7 +1199,7 @@ def get_notification_icon_tooltip_dict():
'%d events pending', '%d events pending',
non_messages[jid], non_messages[jid], non_messages[jid]) non_messages[jid], non_messages[jid], non_messages[jid])
text += _(' from user %s') % (jid) text += _(' from user %s') % (jid)
accounts[account]['event_lines'].append(text) account[account]['event_lines'].append(text)
return accounts return accounts
......
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