Skip to content

AttributeError: 'NoneType' object has no attribute 'group' #12

Description

@wodim

When using get_tags on this mp3 file.

GB89-128 Voodoo Ray - A Guy Called Gerald.zip

Traceback (most recent call last):
  File "C:\Users\User\AppData\Roaming\Python\Python38\site-packages\mp3_tagger\id3.py", line 178, in _unpack_bytes
    val = int(val)
ValueError: invalid literal for int() with base 10: ''

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "sorter.py", line 41, in <module>
    mp3s[file] = mp3.get_tags()
  File "C:\Users\User\AppData\Roaming\Python\Python38\site-packages\mp3_tagger\mp3.py", line 141, in get_tags
    tmp_dict[tag.title] = tag.value
  File "C:\Users\User\AppData\Roaming\Python\Python38\site-packages\mp3_tagger\id3.py", line 40, in value
    val = self._unpack_bytes()
  File "C:\Users\User\AppData\Roaming\Python\Python38\site-packages\mp3_tagger\id3.py", line 183, in _unpack_bytes
    val = int(re.search(r'\d+', val).group(0))
AttributeError: 'NoneType' object has no attribute 'group'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions