cogs/emote: remove extra cast to str
This commit is contained in:
parent
cba238464c
commit
fcc1f405e3
|
@ -109,7 +109,7 @@ class Emotes(commands.Cog):
|
|||
@commands.Cog.listener()
|
||||
async def on_command_error(self, context, error):
|
||||
if isinstance(error, errors.EmoteManagerError):
|
||||
await context.send(str(error))
|
||||
await context.send(error)
|
||||
|
||||
if isinstance(error, commands.NoPrivateMessage):
|
||||
await context.send(
|
||||
|
|
Loading…
Reference in New Issue