aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-04-11 14:25:20 -0400
committerRapptz <[email protected]>2016-04-11 14:25:20 -0400
commit28b3d375e9a6679d65f8c73a29bb88595149cbf2 (patch)
tree2ea3ae43c8e2758b2ddcfcae64c9a861325cc399
parentBetter chunking behaviour and add members on PRESENCE_UPDATE. (diff)
downloaddiscord.py-28b3d375e9a6679d65f8c73a29bb88595149cbf2.tar.xz
discord.py-28b3d375e9a6679d65f8c73a29bb88595149cbf2.zip
Check the right status code for improper token being passed.
-rw-r--r--discord/client.py2
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)