From 311084c4fd38f2f449805478be3227a73644e51f Mon Sep 17 00:00:00 2001 From: Samantha Baldwin Date: Sun, 10 Sep 2017 22:47:08 -0400 Subject: [PATCH] offset.py: handle accurip response not found --- whipper/command/offset.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/whipper/command/offset.py b/whipper/command/offset.py index 91f3862..77585ee 100644 --- a/whipper/command/offset.py +++ b/whipper/command/offset.py @@ -91,11 +91,14 @@ CD in the AccurateRip database.""" table = t.table logger.debug("CDDB disc id: %r", table.getCDDBDiscId()) - responses = accurip.get_db_entry(table.accuraterip_path()) + responses = None + try: + responses = accurip.get_db_entry(table.accuraterip_path()) + except accurip.EntryNotFound: + print('Accuraterip entry not found') if responses: logger.debug('%d AccurateRip responses found.' % len(responses)) - if responses[0].cddbDiscId != table.getCDDBDiscId(): logger.warning("AccurateRip response discid different: %s", responses[0].cddbDiscId)