aboutsummaryrefslogtreecommitdiff
path: root/discord/abc.py
diff options
context:
space:
mode:
authorHornwitser <[email protected]>2018-08-01 11:36:46 +0200
committerRapptz <[email protected]>2018-11-24 22:17:57 -0500
commit4ae8e816603ce8df6242dcd85174514972067448 (patch)
tree808d389939169ffee69afcabbe932c09a307207c /discord/abc.py
parent[lint] Limit unneccessarily broad except clauses (diff)
downloaddiscord.py-4ae8e816603ce8df6242dcd85174514972067448.tar.xz
discord.py-4ae8e816603ce8df6242dcd85174514972067448.zip
[lint] Remove redundant exception variables
Use bare raise statement when reraising the exception that occured, and remove unused exception variables. Also remove a pointless exception handler in discord.opus.
Diffstat (limited to 'discord/abc.py')
-rw-r--r--discord/abc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/abc.py b/discord/abc.py
index d85534f9..bc6df318 100644
--- a/discord/abc.py
+++ b/discord/abc.py
@@ -978,12 +978,12 @@ class Connectable(metaclass=abc.ABCMeta):
try:
await voice.connect(reconnect=reconnect)
- except asyncio.TimeoutError as e:
+ except asyncio.TimeoutError:
try:
await voice.disconnect(force=True)
except Exception:
# we don't care if disconnect failed because connection failed
pass
- raise e # re-raise
+ raise # re-raise
return voice