Check the right status code for improper token being passed.

This commit is contained in:
Rapptz 2016-04-11 14:25:20 -04:00
parent 6076c8c671
commit 28b3d375e9

View File

@ -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)