diff options
author | Devaev Maxim <[email protected]> | 2018-12-16 16:57:52 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-12-16 16:57:52 +0300 |
commit | b8df7a71fec778f16d0905ac474cbdb8cc829789 (patch) | |
tree | cdd0a00e5a04a5377a12295e0fd63c570b0ac5ca /kvmd | |
parent | aa8d0aa01d1775b42b54e9f0779bccc583b25440 (diff) |
ignore streamer connection errors
Diffstat (limited to 'kvmd')
-rw-r--r-- | kvmd/apps/kvmd/streamer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/apps/kvmd/streamer.py b/kvmd/apps/kvmd/streamer.py index c3d9bbe8..7c9b2419 100644 --- a/kvmd/apps/kvmd/streamer.py +++ b/kvmd/apps/kvmd/streamer.py @@ -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") |