Fix timeout

This commit is contained in:
M-307 2022-08-03 00:37:36 +07:00
parent 5543ca3fa1
commit 0cbe0d54d8

View File

@ -52,7 +52,7 @@ async def request(url: str, headers: dict = None) -> dict:
headers = {} headers = {}
retry = 0 retry = 0
async with aiohttp.ClientSession(timeout=30) as session: async with aiohttp.ClientSession(timeout=aiohttp.ClientTimeout(total=30)) as session:
""" """
From https://gist.github.com/foobarna/19c132304e140bf5031c273f6dc27ece # noqa: E501 From https://gist.github.com/foobarna/19c132304e140bf5031c273f6dc27ece # noqa: E501
""" """