Loading Vorbis file with invalid rating value fails

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • 2.1
    • Affects Version/s: 2.0.4
    • Component/s: Tags & Metadata
    • None

      Trying to load a Vorbis file with a rating: tag which contains a non-numeric string fails

       

      E: 08:49:39,038 /home/phw/devel/musicbrainz/picard/picard/util/thread.run:56: Traceback (most recent call last):
      File "/home/phw/devel/musicbrainz/picard/picard/util/thread.py", line 52, in run
      result = self.func()
      File "/home/phw/devel/musicbrainz/picard/picard/file.py", line 123, in _load_check
      return self._load(filename)
      File "/home/phw/devel/musicbrainz/picard/picard/formats/vorbis.py", line 98, in _load
      value = str(int(round((float(value) * (config.setting['rating_steps'] - 1)))))
      ValueError: could not convert string to float: 'TEST'

            Assignee:
            Philipp Wolfer
            Reporter:
            Philipp Wolfer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2.1