Skip to content

Commit 74f98c5

Browse files
Update pymongo/asynchronous/pool.py
Co-authored-by: Noah Stapp <[email protected]>
1 parent 257f8fe commit 74f98c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymongo/asynchronous/pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ async def connect(self, handler: Optional[_MongoClientErrorHandler] = None) -> A
10521052
reason=_verbose_connection_error_reason(ConnectionClosedReason.ERROR),
10531053
error=ConnectionClosedReason.ERROR,
10541054
)
1055-
if isinstance(error, (IOError, OSError, SSLError, PYSSLError)):
1055+
if isinstance(error, (IOError, OSError, *SSLErrors)):
10561056
details = _get_timeout_details(self.opts)
10571057
_raise_connection_failure(self.address, error, timeout_details=details)
10581058

0 commit comments

Comments
 (0)