1
0
Fork 0
mirror of https://github.com/uhIgnacio/EmoteManager.git synced 2024-08-15 02:23:13 +00:00

cogs/emote: remove extra cast to str

This commit is contained in:
Io Mintz 2020-05-13 08:26:32 +00:00
parent cba238464c
commit fcc1f405e3

View file

@ -109,7 +109,7 @@ class Emotes(commands.Cog):
@commands.Cog.listener() @commands.Cog.listener()
async def on_command_error(self, context, error): async def on_command_error(self, context, error):
if isinstance(error, errors.EmoteManagerError): if isinstance(error, errors.EmoteManagerError):
await context.send(str(error)) await context.send(error)
if isinstance(error, commands.NoPrivateMessage): if isinstance(error, commands.NoPrivateMessage):
await context.send( await context.send(