Skip to content

Commit

Permalink
Handle non-volume CV ID when searching
Browse files Browse the repository at this point in the history
  • Loading branch information
Casvt committed Jan 6, 2025
1 parent 37acbc4 commit 02e8ddc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backend/implementations/comicvine.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,12 @@ async def search_volumes(

try:
if query.startswith(('4050-', 'cv:')):
query = to_full_string_cv_id((query,))[0]
try:
query = to_full_string_cv_id((query,))[0]

except VolumeNotMatched:
return []

if not query:
return []

Expand Down

0 comments on commit 02e8ddc

Please sign in to comment.