diff options
author | Maxim Devaev <[email protected]> | 2024-08-19 01:06:00 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2024-08-19 01:06:00 +0300 |
commit | c9405efa0535fda9ab6693ea93a477dbded28069 (patch) | |
tree | d90d2ef99e42416e68a4802d6994d7f7955c93d1 | |
parent | abedace4b3173fca98eee1ac0b778a45dc93c5b5 (diff) |
lint fix
-rw-r--r-- | kvmd/apps/kvmd/streamer.py | 2 | ||||
-rw-r--r-- | kvmd/htclient.py | 2 | ||||
-rw-r--r-- | kvmd/plugins/auth/http.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/kvmd/apps/kvmd/streamer.py b/kvmd/apps/kvmd/streamer.py index 26904d40..e5c406d9 100644 --- a/kvmd/apps/kvmd/streamer.py +++ b/kvmd/apps/kvmd/streamer.py @@ -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) diff --git a/kvmd/htclient.py b/kvmd/htclient.py index 724eddcd..9d9ae82c 100644 --- a/kvmd/htclient.py +++ b/kvmd/htclient.py @@ -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 diff --git a/kvmd/plugins/auth/http.py b/kvmd/plugins/auth/http.py index 54308279..520f64dc 100644 --- a/kvmd/plugins/auth/http.py +++ b/kvmd/plugins/auth/http.py @@ -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, |