Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-1304

Info dialog for album crashes because track doesn't have a tracknumber

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.0.3
    • Component/s: User Interface
    • Labels:
      None
    • Environment:
      openSUSE Tumbleweed

      Description

      I have a cluster with two files, one has track number information and the other doesn't have any.

      This crashes picard with:

      Traceback (most recent call last):
       File "/usr/lib64/python3.6/site-packages/picard/ui/mainwindow.py", line 878, in view_info
         dialog = ClusterInfoDialog(cluster, self)
       File "/usr/lib64/python3.6/site-packages/picard/ui/infodialog.py", line 334, in _init_
         super()._init_(cluster, parent)
       File "/usr/lib64/python3.6/site-packages/picard/ui/infodialog.py", line 131, in _init_
         self._display_tabs()
       File "/usr/lib64/python3.6/site-packages/picard/ui/infodialog.py", line 135, in _display_tabs
         self._display_info_tab()
       File "/usr/lib64/python3.6/site-packages/picard/ui/infodialog.py", line 362, in _display_info_tab
         lines = ["%s %s - %s (%s)" % item for item in sorted(tracklist, key=sorttracknum)]
      TypeError: '<' not supported between instances of 'int' and 'str'
      Aborted (core dumped)

        Attachments

          Activity

            People

            • Assignee:
              antlarr Antonio Larrosa Jiménez
              Reporter:
              antlarr Antonio Larrosa Jiménez
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: