From 9099da2acee9af5218da9aa2cbb432709109f28a Mon Sep 17 00:00:00 2001 From: JoeLametta Date: Fri, 22 Jul 2016 16:41:40 +0200 Subject: [PATCH] Fix previous commit Hopefully this one fixes a privately reported regression introduced with the previous commit. ```python TypeError: unsupported operand type(s) for %: 'NoneType' and 'tuple' ``` --- morituri/result/logger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/morituri/result/logger.py b/morituri/result/logger.py index ac83dc5..2a12b96 100644 --- a/morituri/result/logger.py +++ b/morituri/result/logger.py @@ -117,10 +117,10 @@ class MorituriLogger(result.Logger): "(you may have a different pressing from the " "one(s) in the database)" % arHeading) elif self._accuratelyRipped < nonHTOA: + accurateTracks = nonHTOA - self._accuratelyRipped lines.append("%s Some tracks could not be verified as " "accurate (%d/%d got no match)") % ( - arHeading, (nonHTOA - self._accuratelyRipped), - nonHTOA) + arHeading, accurateTracks, nonHTOA) else: lines.append("%s All tracks accurately ripped" % arHeading)