diff --git a/comictaggerlib/comicvinetalker.py b/comictaggerlib/comicvinetalker.py index 71fc00d..83e397a 100644 --- a/comictaggerlib/comicvinetalker.py +++ b/comictaggerlib/comicvinetalker.py @@ -777,7 +777,7 @@ class ComicVineTalker: # This async version requires the issue page url to be provided! self.issue_id = issue_id url_list = self.fetch_cached_alternate_cover_urls(issue_id) - if url_list is not None: + if url_list: ComicVineTalker.alt_url_list_fetch_complete(url_list) return diff --git a/comictaggerlib/coverimagewidget.py b/comictaggerlib/coverimagewidget.py index bd7c1b3..80b6ba2 100644 --- a/comictaggerlib/coverimagewidget.py +++ b/comictaggerlib/coverimagewidget.py @@ -215,7 +215,7 @@ class CoverImageWidget(QtWidgets.QWidget): comic_vine.async_fetch_alternate_cover_urls(utils.xlate(self.issue_id), cast(str, issue_page_url)) def alt_cover_url_list_fetch_complete(self, url_list: list[str]) -> None: - if len(url_list) > 0: + if url_list: self.url_list.extend(url_list) self.imageCount = len(self.url_list) self.update_controls()