mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
aiohttp: fix request arguments
This commit is contained in:
parent
2d0d3cfcee
commit
e339827436
1 changed files with 1 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue