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

Description

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/statusicon.py", line 116, in on_status_icon_left_clicked
    self.on_left_click()
  File "/usr/share/gajim/src/statusicon.py", line 414, in on_left_click
    self.handle_first_event()
  File "/usr/share/gajim/src/statusicon.py", line 420, in handle_first_event
    gajim.interface.handle_event(account, jid, event.type_)
  File "/usr/share/gajim/src/gui_interface.py", line 2331, in handle_event
    session=session)
  File "/usr/share/gajim/src/gui_interface.py", line 2817, in new_chat
    chat_control.read_queue()
  File "/usr/share/gajim/src/chat_control.py", line 2758, in read_queue
    displaymarking=dm)
  File "/usr/share/gajim/src/chat_control.py", line 2305, in print_conversation
    simple=simple, xep0184_id=xep0184_id, displaymarking=displaymarking)
  File "/usr/share/gajim/src/chat_control.py", line 846, in print_conversation_line
    displaymarking=displaymarking)
  File "/usr/share/gajim/src/conversation_textview.py", line 1237, in print_conversation_line
    timestamp_str = self.get_time_to_show(tim)
  File "/usr/share/gajim/src/conversation_textview.py", line 1310, in get_time_to_show
    diff_day, {'nb_days': diff_day}, {'nb_days': diff_day})
  File "/usr/share/gajim/src/common/i18n.py", 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.