diff options
| author | Hornwitser <[email protected]> | 2018-08-01 11:41:15 +0200 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-11-24 22:17:57 -0500 |
| commit | fa46b07db15f5ce41be3f4944d2ff011794207d5 (patch) | |
| tree | 0a87a0731c797cfadb69f7812ee4813628b4eba2 /discord/ext/commands/bot.py | |
| parent | [lint] Remove redundant exception variables (diff) | |
| download | discord.py-fa46b07db15f5ce41be3f4944d2ff011794207d5.tar.xz discord.py-fa46b07db15f5ce41be3f4944d2ff011794207d5.zip | |
[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.
Diffstat (limited to 'discord/ext/commands/bot.py')
| -rw-r--r-- | discord/ext/commands/bot.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index 04a5452f..b934be9b 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -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: |