Aiohttp 2.0

Ref #1000
This commit is contained in:
Julien Duponchelle
2017-05-16 19:28:47 +02:00
parent e9fef928b0
commit a4245fcf44
19 changed files with 72 additions and 97 deletions

View File

@ -227,7 +227,7 @@ async def main(loop):
try:
j = await error.response.json()
die("%s %s invalid status %d:\n%s", error.method, error.path, error.response.status, json.dumps(j, indent=4))
except (ValueError, aiohttp.errors.ServerDisconnectedError):
except (ValueError, aiohttp.ServerDisconnectedError):
die("%s %s invalid status %d", error.method, error.path, error.response.status)