PYTHON-5705 Improve fallback for PyOpenSSL windows system certs loading (#2688)

This commit is contained in:
Steven Silvester 2026-02-09 19:39:05 -06:00 committed by GitHub
parent 0441761872
commit 36676384bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -357,7 +357,7 @@ class SSLContext:
try:
for storename in ("CA", "ROOT"):
self._load_wincerts(storename)
except PermissionError:
except Exception:
# Fall back to certifi
self._load_certifi()
elif _sys.platform == "darwin":