mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
lint fix
This commit is contained in:
parent
abedace4b3
commit
c9405efa05
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user