From 0cbe0d54d881146704b10f89df9a84d7c1dd9507 Mon Sep 17 00:00:00 2001 From: M-307 Date: Wed, 3 Aug 2022 00:37:36 +0700 Subject: [PATCH] Fix timeout --- enkanetwork/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enkanetwork/utils.py b/enkanetwork/utils.py index cec734e..199809c 100644 --- a/enkanetwork/utils.py +++ b/enkanetwork/utils.py @@ -52,7 +52,7 @@ async def request(url: str, headers: dict = None) -> dict: headers = {} 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 """