Fix lastfm crash when no results found #184

This commit is contained in:
Nathan Thomas 2021-09-18 18:32:01 -07:00
parent f222b32f72
commit fc9dfe15aa

View file

@ -674,8 +674,10 @@ class RipCore(list):
or results.get("collection")
or results.get("albums", {}).get("data", False)
)
if items is None:
if not items:
raise NoResultsFound(query)
logger.debug("Number of results: %d", len(items))
for i, item in enumerate(items):