Skip to content

Commit

Permalink
Pass-through for SSL cert verification errors
Browse files Browse the repository at this point in the history
  • Loading branch information
DevilXD committed Dec 26, 2023
1 parent 6e0b461 commit efe601a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions twitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit efe601a

Please sign in to comment.