aboutsummaryrefslogtreecommitdiff
path: root/discord/http.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/http.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/http.py')
-rw-r--r--discord/http.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/http.py b/discord/http.py
index 6c2b548c..93e9708d 100644
--- a/discord/http.py
+++ b/discord/http.py
@@ -248,7 +248,7 @@ class HTTPClient:
self._token(old_token, bot=old_bot)
if e.response.status == 401:
raise LoginFailure('Improper token has been passed.') from e
- raise e
+ raise
return data