Browse Source

Client.login no longer calls resp.json()

aiohttp didn't like it.
pull/57/merge
Rapptz 9 years ago
parent
commit
fa3e5c8d77
  1. 3
      discord/client.py

3
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

Loading…
Cancel
Save