Skip to content

Commit

Permalink
Fix bug with parsing barcode input.
Browse files Browse the repository at this point in the history
  • Loading branch information
sheriferson committed Feb 7, 2024
1 parent 35ba57e commit 5d150c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scrobble/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 5d150c7

Please sign in to comment.