Change temporary print to a MinerException
This commit is contained in:
1 parent
d3a754a438
commit
9c58befac3
1 file changed
+2
-3
+2
-3
@@ -384,7 +384,6 @@ class Channel:
|
|||||||
# without downloading the actual stream data
|
# without downloading the actual stream data
|
||||||
async with self._twitch.request("HEAD", stream_chunk_url) as head_response:
|
async with self._twitch.request("HEAD", stream_chunk_url) as head_response:
|
||||||
return head_response.status == 200
|
return head_response.status == 200
|
||||||
except aiohttp.InvalidURL:
|
except aiohttp.InvalidURL as exc:
|
||||||
# Temporarily log the entire response into the output
|
# Temporarily log the entire response into the output
|
||||||
self._twitch.print(available_chunks)
|
raise MinerException(available_chunks) from exc
|
||||||
raise
|
|
||||||
Reference in new issue
Block a user