Browse Source
Update http.py
fix grammar logic behind invalid token
pull/10217/head
Nairda
3 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
discord/http.py
|
|
@ -833,7 +833,7 @@ class HTTPClient: |
|
|
|
except HTTPException as exc: |
|
|
|
self.token = old_token |
|
|
|
if exc.status == 401: |
|
|
|
raise LoginFailure('Improper token has been passed.') from exc |
|
|
|
raise LoginFailure('An improper token has been provided.') from exc |
|
|
|
raise |
|
|
|
|
|
|
|
return data |
|
|
|