aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-12-12 17:47:27 -0500
committerRapptz <[email protected]>2015-12-12 17:47:27 -0500
commitfa3e5c8d77fa209f30878d4cb896c4cb5d9971e1 (patch)
treec4513086a9a27f729d130731d61884c612f2b2d0
parentFix bug where PMs would be sent to the wrong person. (diff)
downloaddiscord.py-fa3e5c8d77fa209f30878d4cb896c4cb5d9971e1.tar.xz
discord.py-fa3e5c8d77fa209f30878d4cb896c4cb5d9971e1.zip
Client.login no longer calls resp.json()
aiohttp didn't like it.
-rw-r--r--discord/client.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/discord/client.py b/discord/client.py
index 5674b33f..42657f69 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -521,8 +521,7 @@ class Client:
if resp.status == 400:
raise LoginFailure('Improper credentials have been passed.')
elif resp.status != 200:
- data = yield from resp.json()
- raise HTTPException(resp, data.get('message'))
+ raise HTTPException(resp, None)
log.info('logging in returned status code {}'.format(resp.status))
self.email = email