bugfix get_artist_albums

This commit is contained in:
2025-02-16 06:36:31 -05:00
parent e82ca841a8
commit 8080d858f8
2 changed files with 6 additions and 1 deletions

View File

@ -68,6 +68,11 @@ class LastFM(FastAPI):
})
album_result: Union[dict, list[dict]] = await self.lastfm.get_artist_albums(artist=artist)
if isinstance(album_result, dict):
return JSONResponse(status_code=500, content={
'err': True,
'errorText': 'General failure.',
})
album_result_out: list = []
seen_release_titles: list = []