Return zero score if there is no image url. Fixes #392

This commit is contained in:
Mizaki 2022-11-10 16:15:27 +00:00
parent 685ce014b6
commit 880b1be401

View File

@ -251,6 +251,10 @@ class IssueIdentifier:
# local_cover_hash_list is a list of pre-calculated hashes.
# use_remote_alternates - indicates to use alternate covers from CV
# If there is no URL return 0
if not primary_img_url:
return Score(score=0, url="", hash=0)
try:
url_image_data = ImageFetcher().fetch(primary_thumb_url, blocking=True)
except ImageFetcherException as e: