aiohttp: fix request arguments

This commit is contained in:
lilydjwg 2020-08-20 15:41:35 +08:00
parent 2d0d3cfcee
commit e339827436

View file

@ -30,7 +30,6 @@ class AiohttpSession(BaseSession):
json = None,
) -> Response:
kwargs = {
'method': method,
'headers': headers,
}
@ -39,7 +38,7 @@ class AiohttpSession(BaseSession):
try:
res = await self.session.request(
url, **kwargs)
method, url, **kwargs)
except (
asyncio.TimeoutError, aiohttp.ClientConnectorError,
) as e: