Skip to content

Commit

Permalink
Revert "Try to remedy the exception not getting caught"
Browse files Browse the repository at this point in the history
This reverts commit a42a72b.
  • Loading branch information
DevilXD committed Sep 11, 2024
1 parent 990a585 commit d3a754a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit d3a754a

Please sign in to comment.