mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 11:48:55 -05:00
fix exception for empty strings in [p]choice (#4499)
This commit is contained in:
parent
33cf275862
commit
009dc9ae4d
@ -87,7 +87,7 @@ class General(commands.Cog):
|
|||||||
To denote options which include whitespace, you should use
|
To denote options which include whitespace, you should use
|
||||||
double quotes.
|
double quotes.
|
||||||
"""
|
"""
|
||||||
choices = [escape(c, mass_mentions=True) for c in choices]
|
choices = [escape(c, mass_mentions=True) for c in choices if c]
|
||||||
if len(choices) < 2:
|
if len(choices) < 2:
|
||||||
await ctx.send(_("Not enough options to pick from."))
|
await ctx.send(_("Not enough options to pick from."))
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user