From d3a754a4383e51312e17703d545946742208b9fd Mon Sep 17 00:00:00 2001 From: DevilXD <4180725+DevilXD@users.noreply.github.com> Date: Wed, 11 Sep 2024 10:45:27 +0200 Subject: [PATCH] Revert "Try to remedy the exception not getting caught" This reverts commit a42a72bfb1e9d0e0210a81a01e80f2d1c2f0a3a6. --- channel.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/channel.py b/channel.py index bbe40592..81d8e000 100644 --- a/channel.py +++ b/channel.py @@ -5,7 +5,6 @@ from typing import Any, SupportsInt, cast, TYPE_CHECKING import aiohttp -import aiohttp.client_exceptions from yarl import URL from utils import Game @@ -385,7 +384,7 @@ async def send_watch(self) -> bool: # 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.client_exceptions.InvalidUrlClientError: + except aiohttp.InvalidURL: # Temporarily log the entire response into the output self._twitch.print(available_chunks) raise