From 09c3e4771d955473e4adf8c7ab3b5ae415acc185 Mon Sep 17 00:00:00 2001 From: JoeLametta Date: Fri, 9 Nov 2018 08:00:00 +0000 Subject: [PATCH] Prevent exception in offset find Whipper offset find needs a (remote) matching AccurateRip entry to perform its task and confirm the drive offset: if none is found, return early to prevent exception. Fixes #208. --- whipper/command/offset.py | 1 + 1 file changed, 1 insertion(+) diff --git a/whipper/command/offset.py b/whipper/command/offset.py index d347be7..201cd1a 100644 --- a/whipper/command/offset.py +++ b/whipper/command/offset.py @@ -95,6 +95,7 @@ CD in the AccurateRip database.""" except accurip.EntryNotFound: logger.warning("AccurateRip entry not found: drive offset " "can't be determined, try again with another disc") + return if responses: logger.debug('%d AccurateRip responses found.' % len(responses))