mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[General] Fix KeyError in [p]urban
Resolves #2841. Signed-off-by: Toby Harradine <tobyharradine@gmail.com>
This commit is contained in:
parent
f2039300c2
commit
2bdc3ac10c
@ -274,7 +274,7 @@ class General(commands.Cog):
|
||||
return
|
||||
|
||||
if data.get("error") != 404:
|
||||
if not data["list"]:
|
||||
if not data.get("list"):
|
||||
return await ctx.send(_("No Urban Dictionary entries were found."))
|
||||
if await ctx.embed_requested():
|
||||
# a list of embeds
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user