Merge pull request #434 from Freso/issue-431-broken-drive-analyze

Fix failed() task of AnalyzeTask (program/cdparanoia)
This commit is contained in:
JoeLametta
2019-12-15 16:55:10 +01:00
committed by GitHub

View File

@@ -603,7 +603,7 @@ class AnalyzeTask(ctask.PopenTask):
def failed(self):
# cdparanoia exits with return code 1 if it can't determine
# whether it can defeat the audio cache
output = "".join(self._output)
output = "".join(o.decode() for o in self._output)
m = _WARNING_RE.search(output)
if m or _ABORTING_RE.search(output):
self.defeatsCache = False