Browse Source

Check the right status code for improper token being passed.

pull/167/merge
Rapptz 9 years ago
parent
commit
28b3d375e9
  1. 2
      discord/client.py

2
discord/client.py

@ -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…
Cancel
Save