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/converter.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/converter.py')
| -rw-r--r-- | discord/ext/commands/converter.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/ext/commands/converter.py b/discord/ext/commands/converter.py index a66a61f3..de189e6c 100644 --- a/discord/ext/commands/converter.py +++ b/discord/ext/commands/converter.py @@ -343,8 +343,8 @@ class InviteConverter(Converter): try: invite = await ctx.bot.get_invite(argument) return invite - except Exception as e: - raise BadArgument('Invite is invalid or expired') from e + except Exception as exc: + raise BadArgument('Invite is invalid or expired') from exc class EmojiConverter(IDConverter): """Converts to a :class:`Emoji`. |