aboutsummaryrefslogtreecommitdiff
path: root/discord/state.py
diff options
context:
space:
mode:
authorHornwitser <[email protected]>2018-08-01 11:41:15 +0200
committerRapptz <[email protected]>2018-11-24 22:17:57 -0500
commitfa46b07db15f5ce41be3f4944d2ff011794207d5 (patch)
tree0a87a0731c797cfadb69f7812ee4813628b4eba2 /discord/state.py
parent[lint] Remove redundant exception variables (diff)
downloaddiscord.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/state.py')
-rw-r--r--discord/state.py4
1 files changed, 2 insertions, 2 deletions
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: