mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Check the right status code for improper token being passed.
This commit is contained in:
parent
6076c8c671
commit
28b3d375e9
@ -452,7 +452,7 @@ class Client:
|
||||
log.debug(request_logging_format.format(method='GET', response=resp))
|
||||
|
||||
if resp.status != 200:
|
||||
if resp.status == 400:
|
||||
if resp.status == 401:
|
||||
raise LoginFailure('Improper token has been passed.')
|
||||
else:
|
||||
raise HTTPException(resp, None)
|
||||
|
Loading…
x
Reference in New Issue
Block a user