Raise Exception when track rip runs out of attempts

Should fix #57
This commit is contained in:
JoeLametta
2016-10-30 10:24:31 +01:00
committed by GitHub
parent 9f6095a23b
commit c279e8b214

View File

@@ -421,6 +421,9 @@ Log files will log the path to tracks relative to this directory.
if tries == MAX_TRIES:
self.error('Giving up on track %d after %d times' % (
number, tries))
raise RuntimeError(
"track can't be ripped. "
"Rip attempts number is equal to 'MAX_TRIES'")
if trackResult.testcrc == trackResult.copycrc:
self.stdout.write('Checksums match for track %d\n' %
number)