From 9c58befac35bde6f80fe93bb61c61961e296a5a5 Mon Sep 17 00:00:00 2001 From: DevilXD <4180725+DevilXD@users.noreply.github.com> Date: Wed, 11 Sep 2024 10:50:30 +0200 Subject: [PATCH] Change temporary print to a MinerException --- channel.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/channel.py b/channel.py index 81d8e00..901e4a3 100644 --- a/channel.py +++ b/channel.py @@ -384,7 +384,6 @@ class Channel: # without downloading the actual stream data async with self._twitch.request("HEAD", stream_chunk_url) as head_response: return head_response.status == 200 - except aiohttp.InvalidURL: + except aiohttp.InvalidURL as exc: # Temporarily log the entire response into the output - self._twitch.print(available_chunks) - raise + raise MinerException(available_chunks) from exc