mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-09 14:11:55 -04:00
Fix lastfm crash when no results found #184
This commit is contained in:
parent
f222b32f72
commit
fc9dfe15aa
1 changed files with 3 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue