From efe601aeb1512244000c0401a5ed8c21c7d617d1 Mon Sep 17 00:00:00 2001 From: DevilXD <4180725+DevilXD@users.noreply.github.com> Date: Tue, 26 Dec 2023 21:00:57 +0100 Subject: [PATCH] Pass-through for SSL cert verification errors --- twitch.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/twitch.py b/twitch.py index c12903fd..bd899396 100644 --- a/twitch.py +++ b/twitch.py @@ -1502,6 +1502,9 @@ async def request( yield response return self.print(_("error", "site_down").format(seconds=round(delay))) + except aiohttp.ClientConnectorCertificateError: # type: ignore[unused-ignore] + # for a case where SSL verification fails + raise except (aiohttp.ClientConnectionError, asyncio.TimeoutError): # just so that quick retries that often happen, aren't shown if backoff.steps > 1: