From 3fc930b768120a3de2276a39ab8b1d8ba850da74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20CORBASSON?= Date: Fri, 13 Feb 2026 23:04:04 +0100 Subject: [PATCH] Keep working if the HTOA track couldn't be ripped MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Loïc CORBASSON --- whipper/command/cd.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/whipper/command/cd.py b/whipper/command/cd.py index f95487e..da4bcc0 100644 --- a/whipper/command/cd.py +++ b/whipper/command/cd.py @@ -527,10 +527,13 @@ Log files will log the path to tracks relative to this directory. 'threshold, disregarding', trackResult.peak) self.itable.setFile(1, 0, None, self.itable.getTrackStart(1), number) - logger.debug('unlinking %r', trackResult.filename) - os.unlink(trackResult.filename) + if os.path.exists(trackResult.filename): + logger.debug('unlinking %r', trackResult.filename) + os.unlink(trackResult.filename) + logger.info('HTOA discarded, contains digital silence') + else: + logger.info('HTOA could not be ripped, discarded') trackResult.filename = None - logger.info('HTOA discarded, contains digital silence') else: self.itable.setFile(1, 0, trackResult.filename, self.itable.getTrackStart(1), number)