Skip to content

Commit

Permalink
Raise Exception when track rip runs out of attempts
Browse files Browse the repository at this point in the history
Should fix #57
  • Loading branch information
JoeLametta authored Oct 30, 2016
1 parent 9f6095a commit c279e8b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions morituri/rip/cd.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,9 @@ def ripIfNotRipped(number):
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)
Expand Down

0 comments on commit c279e8b

Please sign in to comment.