Skip to content

Commit

Permalink
Fix typo of context.
Browse files Browse the repository at this point in the history
  • Loading branch information
EvieePy committed Jan 21, 2020
1 parent 8bea1d0 commit 6e8a2df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion twitchio/ext/commands/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ async def get_context(self, message, *, cls=None):

prefix = await self.get_prefix(message)


context = cls(message=message, prefix=prefix)
return context

Expand Down Expand Up @@ -195,7 +196,7 @@ async def invoke(self, context):

except Exception as e:
if context.command.event_error:
await content.command.on_error(instance, context, e)
await context.command.on_error(instance, context, e)

await self.event_command_error(context, e)

Expand Down

0 comments on commit 6e8a2df

Please sign in to comment.