diff options
| author | Rapptz <[email protected]> | 2016-04-11 14:25:20 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-04-11 14:25:20 -0400 |
| commit | 28b3d375e9a6679d65f8c73a29bb88595149cbf2 (patch) | |
| tree | 2ea3ae43c8e2758b2ddcfcae64c9a861325cc399 /discord/client.py | |
| parent | Better chunking behaviour and add members on PRESENCE_UPDATE. (diff) | |
| download | discord.py-28b3d375e9a6679d65f8c73a29bb88595149cbf2.tar.xz discord.py-28b3d375e9a6679d65f8c73a29bb88595149cbf2.zip | |
Check the right status code for improper token being passed.
Diffstat (limited to 'discord/client.py')
| -rw-r--r-- | discord/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/client.py b/discord/client.py index b6ba71f4..d80e73bf 100644 --- a/discord/client.py +++ b/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) |