mirror of
https://github.com/rangermix/TwitchDropsMiner.git
synced 2026-06-04 11:29:38 +00:00
Try to remedy the exception not getting caught
This commit is contained in:
@@ -5,6 +5,7 @@ import logging
|
||||
from typing import Any, SupportsInt, cast, TYPE_CHECKING
|
||||
|
||||
import aiohttp
|
||||
import aiohttp.client_exceptions
|
||||
from yarl import URL
|
||||
|
||||
from utils import Game
|
||||
@@ -384,7 +385,7 @@ 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.client_exceptions.InvalidUrlClientError:
|
||||
# Temporarily log the entire response into the output
|
||||
self._twitch.print(available_chunks)
|
||||
raise
|
||||
|
||||
Reference in New Issue
Block a user