Opened 5 years ago

Closed 5 years ago

#6928 closed defect (duplicate)

TypeError: %d format: a number is required, not dict

Reported by: dekoza Owned by:
Priority: high Milestone: 0.14.4
Component: None Version: 0.14.3
Severity: blocker Keywords:
Cc: Blocked By:
Blocking: OS: Unix


Bug description

After starting Gajim it gets several messages and displays "Programming error". I get no messages, though window titles display number of messages in square bracets. I need to turn Gajim off and then read the messages from history. After that I can normally chat. I use Polish locale.

Traceback (most recent call last):
  File "/usr/share/gajim/src/", line 116, in on_status_icon_left_clicked
  File "/usr/share/gajim/src/", line 414, in on_left_click
  File "/usr/share/gajim/src/", line 420, in handle_first_event
    gajim.interface.handle_event(account, jid, event.type_)
  File "/usr/share/gajim/src/", line 2331, in handle_event
  File "/usr/share/gajim/src/", line 2817, in new_chat
  File "/usr/share/gajim/src/", line 2758, in read_queue
  File "/usr/share/gajim/src/", line 2305, in print_conversation
    simple=simple, xep0184_id=xep0184_id, displaymarking=displaymarking)
  File "/usr/share/gajim/src/", line 846, in print_conversation_line
  File "/usr/share/gajim/src/", line 1237, in print_conversation_line
    timestamp_str = self.get_time_to_show(tim)
  File "/usr/share/gajim/src/", line 1310, in get_time_to_show
    diff_day, {'nb_days': diff_day}, {'nb_days': diff_day})
  File "/usr/share/gajim/src/common/", line 101, in ngettext
    text = text % replace_plural
TypeError: %d format: a number is required, not dict

Steps to reproduce

Run Gajim when you have waiting messages and click on the status icon.

Software versions

OS version: Linux Mint Debian

Change History (1)

comment:1 Changed 5 years ago by asterix

  • Resolution set to duplicate
  • Status changed from new to closed

dup of #6919, #6906

Note: See TracTickets for help on using tickets.