From d5abfbf9c272276468698f0b7ef84431e310ec02 Mon Sep 17 00:00:00 2001 From: Flowseal Date: Sat, 9 May 2026 16:47:56 +0300 Subject: [PATCH] github connection fallback --- proxy/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proxy/utils.py b/proxy/utils.py index c0f5980..bc89198 100644 --- a/proxy/utils.py +++ b/proxy/utils.py @@ -77,7 +77,10 @@ class _PinnedHTTPSHandler(urllib.request.HTTPSHandler): self.sock, server_hostname=self._tunnel_host or self.host ) - return self.do_open(_Conn, req) + try: + return self.do_open(_Conn, req) + except Exception: + return super().https_open(req) def build_github_opener() -> urllib.request.OpenerDirector: