#1149509 reportbug: crashes with TypeError: cannot unpack non-iterable NoneType object

#1149509#5
Date:
2026-09-30 05:32:48 UTC
From:
To:
Dear Maintainer,

when using reportbug in the terminal (text interface) it crashes. I just
started it with `-u gtk` right now which prevents the crash, but somehow
breaks copy&paste, therefore I will send yo the log in an follow up
email.

This must be caused by recent changes as I just used reportbug
successfully yesterday or the day before.

Best regards,
Martin

#1149509#10
Date:
2026-09-30 05:39:27 UTC
From:
To:
Using 'Martin Dosch <martin@mdosch.de>' as your from address.
Getting status for reportbug...
Verifying package integrity...
Checking for newer versions at madison...
Will send report to Debian (per lsb_release).
Traceback (most recent call last):
  File "/usr/bin/reportbug", line 2419, in <module>
    main()
    ~~~~^^
  File "/usr/bin/reportbug", line 1110, in main
    return iface.user_interface()
           ~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/bin/reportbug", line 1804, in user_interface
    exinfo = ui.handle_bts_query(pkg, bts, self.options.timeout,
                                 self.options.mirrors,
    ...<5 lines>...
                                 mbox_reader_cmd=self.options.mbox_reader_cmd,
                                 latest_first=self.options.latest_first)
  File "/usr/lib/python3/dist-packages/reportbug/ui/urwid_ui.py", line 644, in handle_bts_query
    info = int(menu('Select a bug to read (and possibly report more information) or report a new bug:',
               ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                    buglist, '', ui=ui, title=sectitle, default=p,
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                    oklabel='Read bug',
                    ^^^^^^^^^^^^^^^^^^^
                    cancellabel=cancellabel,
                    ^^^^^^^^^^^^^^^^^^^^^^^^
                    quitlabel=quitlabel))
                    ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/reportbug/ui/urwid_ui.py", line 507, in menu
    result, chosen = box.main(ui)
    ^^^^^^^^^^^^^^
TypeError: cannot unpack non-iterable NoneType object
```