diff options
Diffstat (limited to 'kvmd/clients/streamer.py')
-rw-r--r-- | kvmd/clients/streamer.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kvmd/clients/streamer.py b/kvmd/clients/streamer.py index e8051855..e38497e5 100644 --- a/kvmd/clients/streamer.py +++ b/kvmd/clients/streamer.py @@ -26,6 +26,8 @@ from typing import AsyncGenerator import aiohttp +from .. import aiotools + # ===== class StreamerError(Exception): @@ -59,7 +61,7 @@ class StreamerClient: params={"extra_headers": "1"}, headers={"User-Agent": self.__user_agent}, ) as response: - response.raise_for_status() + aiotools.raise_not_200(response) reader = aiohttp.MultipartReader.from_response(response) while True: frame = await reader.next() # pylint: disable=not-callable |