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

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

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.0.3
    • 2.0.2
    • User Interface
    • None
    • openSUSE Tumbleweed

      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)

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

              Created:
              Updated:
              Resolved:

                Version Package
                2.0.3