From fa46b07db15f5ce41be3f4944d2ff011794207d5 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Wed, 1 Aug 2018 11:41:15 +0200 Subject: [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. --- discord/ext/commands/converter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'discord/ext/commands/converter.py') 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`. -- cgit v1.2.3