[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.
This commit is contained in:
Hornwitser authored and Rapptz committed 2018-11-24 22:17:57 -05:00
1 parent a71b3b5fa0
commit 4ae8e81660
5 files changed
+13 -16

No files matched your search

+1 -1
View File
@@ -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