Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve case where _peakdB is None #20

Merged
merged 3 commits into from
Feb 2, 2016
Merged

Resolve case where _peakdB is None #20

merged 3 commits into from
Feb 2, 2016

Conversation

chadberg
Copy link
Contributor

@chadberg chadberg commented Feb 2, 2016

When _peakdB is none (sometimes happens with HTOA), peak is not set to a float number, causing the output to crash with a TypeError: a float is required on line 434 of cd.py. This pull request will fix this (and changes the strings in this section of cd.py to use the newer str.format convention).

@JoeLametta
Copy link
Collaborator

@chadberg Thanks for reporting the issue and providing a fix: merged!

JoeLametta added a commit that referenced this pull request Feb 2, 2016
Resolve case where _peakdB is None
@JoeLametta JoeLametta merged commit 8465e0f into whipper-team:master Feb 2, 2016
@chadberg
Copy link
Contributor Author

chadberg commented Feb 3, 2016

No problem, glad to help. For anyone looking at the original repo, this was issue #100 ( ticket 122 in the trac ticket tracker) going all the way back to v 0.2.0. Cancelled merge request #19 when I realized the problem went deeper than needing to cast an int to a float. Rerunning rip cd rip would work because once the track 0 was extracted, running the command a second time would skip over that track and proceed where it left off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants