eyeD3
eyeD3 copied to clipboard
How to catch a GenreException?
I'm getting this output from eyeD3:
Invalid numeric genre ID: 255
Unknown genre ID: 255
And I found that there is a eyed3.id3.GenreException
. Tried to catch that with:
try:
song = eyed3.load(entry)
except eyed3.id3.GenreException:
print('foo')
I expected to see foo
instead of above output, but it's still the same.
Is the GenreException even thrown? Or is it just normal print()
output?
Btw, there is a google group mentioned on the project page, eyeD3-users. I joined, but apperently I "don't have permission to post in this group".
https://github.com/nicfit/eyeD3/blob/3debffa3d848a4473e52329a4386c11d26f11195/eyed3/id3/init.py#L134
Looks like it is a ValueError
you could catch in that code flow.