From 219e6f509ffaac6faaa6b65bf98a28278c71fd86 Mon Sep 17 00:00:00 2001 From: Chad Bergeron Date: Tue, 2 Feb 2016 13:39:54 -0500 Subject: [PATCH] Cast peak into a float for cases where it isn't (e.g. when HTOA generates a peak of 0) --- morituri/rip/cd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morituri/rip/cd.py b/morituri/rip/cd.py index 09b5803..02c14b2 100644 --- a/morituri/rip/cd.py +++ b/morituri/rip/cd.py @@ -431,7 +431,7 @@ Install pycdio and run 'rip offset find' to detect your drive's offset. raise self.stdout.write('Peak level: %.2f %%\n' % ( - math.sqrt(trackResult.peak) * 100.0, )) + float(math.sqrt(trackResult.peak) * 100.0, ))) self.stdout.write('Rip quality: %.2f %%\n' % ( trackResult.quality * 100.0, ))