This commit is contained in:
Maxim Devaev 2024-08-19 01:06:00 +03:00
parent abedace4b3
commit c9405efa05
3 changed files with 3 additions and 3 deletions

View File

@ -357,7 +357,7 @@ class Streamer: # pylint: disable=too-many-instance-attributes
try:
async with session.get(
self.__make_url("snapshot"),
timeout=self.__snapshot_timeout,
timeout=aiohttp.ClientTimeout(total=self.__snapshot_timeout),
) as response:
htclient.raise_not_200(response)

View File

@ -79,6 +79,6 @@ async def download(
),
}
async with aiohttp.ClientSession(**kwargs) as session:
async with session.get(url, verify_ssl=verify) as response:
async with session.get(url, verify_ssl=verify) as response: # type: ignore
raise_not_200(response)
yield response

View File

@ -75,7 +75,7 @@ class Plugin(BaseAuthService):
async with session.request(
method="POST",
url=self.__url,
timeout=self.__timeout,
timeout=aiohttp.ClientTimeout(total=self.__timeout),
json={
"user": user,
"passwd": passwd,