[lint] Rename exception variables to exc

Use the more explicit (and common) exc instead of e as the variable
holding the exception in except handlers.
This commit is contained in:
Hornwitser
2018-08-01 11:41:15 +02:00
committed by Rapptz
parent 4ae8e81660
commit fa46b07db1
10 changed files with 66 additions and 66 deletions

View File

@@ -897,8 +897,8 @@ class BotBase(GroupMixin):
try:
if (await self.can_run(ctx, call_once=True)):
await ctx.command.invoke(ctx)
except CommandError as e:
await ctx.command.dispatch_error(ctx, e)
except CommandError as exc:
await ctx.command.dispatch_error(ctx, exc)
else:
self.dispatch('command_completion', ctx)
elif ctx.invoked_with: