eyed3 crashes with exception (on empty BPM tag?)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eyed3 (Debian) |
Fix Released
|
Unknown
|
|||
eyed3 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: python-eyed3
When parsing particular mp3 files, which I think contain an
empty BPM tag, this happens:
01 - Spirit.mp3 [ 6.18 MB ]
-------
Time: 02:32 MPEG1, Layer III [ 320 kb/s @ 48000 Hz - Stereo ]
-------
ID3 v2.4:
title: Spirit artist: Eluveitie
album: Spirit year: 2006
track: 1/11 genre: Black Metal (id 138)
Uncaught exception: empty string for float()
Traceback (most recent call last):
File "/usr/bin/eyeD3", line 1215, in <module>
retval = main();
File "/usr/bin/eyeD3", line 1192, in main
retval = app.handleFile(f);
File "/usr/bin/eyeD3", line 566, in handleFile
self.
File "/usr/bin/eyeD3", line 969, in printTag
bpm = tag.getBPM();
File "/usr/lib/
bpm = int(float(
ValueError: empty string for float()
I've attached a tiny patch which makes this problem go away.
But there might be other places in tag.py where extra robustness like
that would be useful.
This is eyed3 version 0.6.17-1build1 on Ubuntu 10.04, up-to-date with patches as of today.
Related branches
tags: | added: patch |
tags: | added: patch-forwarded-upstream |
tags: | removed: patch |
Changed in eyed3 (Debian): | |
status: | Unknown → New |
Changed in eyed3 (Debian): | |
status: | New → Fix Released |
I've also sent this report and patch to the upstream author.