From 11ff1d6447a325a1ce513622975b15a3c8d1b84c Mon Sep 17 00:00:00 2001 From: codey Date: Tue, 8 Apr 2025 20:03:07 -0400 Subject: [PATCH] sing - minor, respond with actual API error on failure, rather than just always "Not found!" --- cogs/sing.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cogs/sing.py b/cogs/sing.py index bfc9bd9..09868e6 100644 --- a/cogs/sing.py +++ b/cogs/sing.py @@ -78,7 +78,9 @@ class Sing(commands.Cog): return 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): return # Invalid data type (