From 3896e5cd9c6510b3e8e54728d89c4d2a07294b74 Mon Sep 17 00:00:00 2001 From: Alok Saboo Date: Tue, 12 Jul 2022 16:14:22 -0400 Subject: [PATCH] Update plugins.py --- beets/plugins.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beets/plugins.py b/beets/plugins.py index 2f5ba397b..bbf29e4be 100644 --- a/beets/plugins.py +++ b/beets/plugins.py @@ -731,7 +731,8 @@ class MetadataSourcePlugin(metaclass=abc.ABCMeta): if not va_likely: query_filters['artist'] = artist results = self._search_api(query_type='album', filters=query_filters) - albums = [self.album_for_id(album_id=r['id']) for r in results] + if results is not None: + albums = [self.album_for_id(album_id=r['id']) for r in results] return [a for a in albums if a is not None] def item_candidates(self, item, artist, title):