mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 17:20:30 +08:00
ignore streamer connection errors
This commit is contained in:
parent
aa8d0aa01d
commit
b8df7a71fe
@ -100,7 +100,7 @@ class Streamer: # pylint: disable=too-many-instance-attributes
|
||||
async with self.__http_session.get(url, timeout=self.__timeout) as response: # type: ignore
|
||||
response.raise_for_status()
|
||||
state = (await response.json())["result"]
|
||||
except aiohttp.ClientConnectorError:
|
||||
except (aiohttp.ClientConnectionError, aiohttp.ServerConnectionError):
|
||||
pass
|
||||
except Exception:
|
||||
get_logger().exception("Invalid streamer response from /state")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user