From 5d150c73e9c7570b3a913ce113ce536817c4d02c Mon Sep 17 00:00:00 2001 From: Sherif Soliman Date: Tue, 6 Feb 2024 22:40:40 -0800 Subject: [PATCH] Fix bug with parsing barcode input. --- src/scrobble/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scrobble/app.py b/src/scrobble/app.py index 4ffdfb5..825e68b 100644 --- a/src/scrobble/app.py +++ b/src/scrobble/app.py @@ -70,8 +70,8 @@ def cd( resolved_barcode = read_barcode(barcode) if not resolved_barcode: raise RuntimeError(f'The image you provided at path {barcode} did not contain a readable barcode.') - else: - raise ValueError(f"The barcode you entered: {barcode} is not not a number or a valid path to a barcode image.") + else: + raise ValueError(f"The barcode you entered: {barcode} is not a number or a valid path to a barcode image.") scrobble_cd: CD = CD.find_cd(resolved_barcode, release_choice)