Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevaev committed Aug 18, 2024
1 parent abedace commit c9405ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kvmd/apps/kvmd/streamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ async def take_snapshot(self, save: bool, load: bool, allow_offline: bool) -> (S
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)
Expand Down
2 changes: 1 addition & 1 deletion kvmd/htclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion kvmd/plugins/auth/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async def authorize(self, user: str, passwd: str) -> bool:
async with session.request(
method="POST",
url=self.__url,
timeout=self.__timeout,
timeout=aiohttp.ClientTimeout(total=self.__timeout),
json={
"user": user,
"passwd": passwd,
Expand Down

0 comments on commit c9405ef

Please sign in to comment.