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/state.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'discord/state.py') diff --git a/discord/state.py b/discord/state.py index 53e453f3..ee542d99 100644 --- a/discord/state.py +++ b/discord/state.py @@ -115,8 +115,8 @@ class ConnectionState: try: passed = listener.predicate(argument) - except Exception as e: - future.set_exception(e) + except Exception as exc: + future.set_exception(exc) removed.append(i) else: if passed: -- cgit v1.2.3