sing - minor, respond with actual API error on failure, rather than just always "Not found!"

This commit is contained in:
codey 2025-04-08 20:03:07 -04:00
parent 6e74c1bb31
commit 11ff1d6447

View File

@ -78,7 +78,9 @@ class Sing(commands.Cog):
return return
if len(search_result) == 1: if len(search_result) == 1:
return await ctx.respond("ERR: Not found!") # Error response from API
error, *_ = search_result[0]
return await ctx.respond(error)
if not isinstance(search_result[0], tuple): if not isinstance(search_result[0], tuple):
return # Invalid data type return # Invalid data type
( (