From fa3e5c8d77fa209f30878d4cb896c4cb5d9971e1 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 12 Dec 2015 17:47:27 -0500 Subject: [PATCH] Client.login no longer calls resp.json() aiohttp didn't like it. --- discord/client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/discord/client.py b/discord/client.py index 5674b33f0..42657f695 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