From c279e8b214b82e4e834e7828816635891c9ad603 Mon Sep 17 00:00:00 2001 From: JoeLametta Date: Sun, 30 Oct 2016 10:24:31 +0100 Subject: [PATCH] Raise Exception when track rip runs out of attempts Should fix #57 --- morituri/rip/cd.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/morituri/rip/cd.py b/morituri/rip/cd.py index 367f79e..3939a60 100644 --- a/morituri/rip/cd.py +++ b/morituri/rip/cd.py @@ -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)