mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 16:00:29 +00:00
Client.login no longer calls resp.json()
aiohttp didn't like it.
This commit is contained in:
parent
2b6bdf7c82
commit
fa3e5c8d77
@ -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…
x
Reference in New Issue
Block a user