Skip to content

Commit 3667638

Browse files
authored
PYTHON-5705 Improve fallback for PyOpenSSL windows system certs loading (#2688)
1 parent 0441761 commit 3667638

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymongo/pyopenssl_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ def load_default_certs(self) -> None:
357357
try:
358358
for storename in ("CA", "ROOT"):
359359
self._load_wincerts(storename)
360-
except PermissionError:
360+
except Exception:
361361
# Fall back to certifi
362362
self._load_certifi()
363363
elif _sys.platform == "darwin":

0 commit comments

Comments
 (0)