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:
|
try:
|
||||||
async with session.get(
|
async with session.get(
|
||||||
self.__make_url("snapshot"),
|
self.__make_url("snapshot"),
|
||||||
timeout=self.__snapshot_timeout,
|
timeout=aiohttp.ClientTimeout(total=self.__snapshot_timeout),
|
||||||
) as response:
|
) as response:
|
||||||
|
|
||||||
htclient.raise_not_200(response)
|
htclient.raise_not_200(response)
|
||||||
|
|||||||
@ -79,6 +79,6 @@ async def download(
|
|||||||
),
|
),
|
||||||
}
|
}
|
||||||
async with aiohttp.ClientSession(**kwargs) as session:
|
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)
|
raise_not_200(response)
|
||||||
yield response
|
yield response
|
||||||
|
|||||||
@ -75,7 +75,7 @@ class Plugin(BaseAuthService):
|
|||||||
async with session.request(
|
async with session.request(
|
||||||
method="POST",
|
method="POST",
|
||||||
url=self.__url,
|
url=self.__url,
|
||||||
timeout=self.__timeout,
|
timeout=aiohttp.ClientTimeout(total=self.__timeout),
|
||||||
json={
|
json={
|
||||||
"user": user,
|
"user": user,
|
||||||
"passwd": passwd,
|
"passwd": passwd,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user