Crash on network errors when searching from the search bar

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • 3.0.0a2, 2.14
    • Affects Version/s: 2.13.3
    • Component/s: Lookup & Match
    • None
    • Environment:
      Alpine Linux (edge/x86_64)
      picard-2.13.3_git20251006-r0

      When searching a term from the search bar,
      Picard says it crashed in a popup.

      The provided log contents are:

      Traceback (most recent call last):
        File "/usr/lib/python3.12/site-packages/picard/webservice/__init__.py", line 592, in _process_reply
          self._handle_reply(reply, request)
        File "/usr/lib/python3.12/site-packages/picard/webservice/__init__.py", line 546, in _handle_reply
          handler(reply.readAll(), reply, error)
        File "/usr/lib/python3.12/site-packages/picard/ui/searchdialog/album.py", line 242, in handle_reply
          self.network_error(http, error)
        File "/usr/lib/python3.12/site-packages/picard/ui/searchdialog/__init__.py", line 258, in network_error
          _(
      TypeError: %d format: a real number is required, not NetworkError
      

      Additionally there's the actual falter line on stderr (though not part of above report):

      E: 03:05:10,363 webservice._handle_reply:525: Network request error for https://musicbrainz.org/ws/2/release?limit=50&query=foo -> Connection closed (QT code <NetworkError.RemoteHostClosedError: 2>, HTTP code 0)
      

            Assignee:
            Philipp Wolfer
            Reporter:
            Quentin Rameau
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Version Package
                3.0.0a2
                2.14