Skip to content

Commit 17cf61d

Browse files
Update pymongo/asynchronous/pool.py
Co-authored-by: Noah Stapp <[email protected]>
1 parent b2324e3 commit 17cf61d

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
@@ -638,7 +638,7 @@ async def _raise_connection_failure(self, error: BaseException) -> NoReturn:
638638
reason = ConnectionClosedReason.ERROR
639639
await self.close_conn(reason)
640640
# SSLError from PyOpenSSL inherits directly from Exception.
641-
if isinstance(error, (IOError, OSError, SSLError, PYSSLError)):
641+
if isinstance(error, (IOError, OSError, *SSLErrors)):
642642
details = _get_timeout_details(self.opts)
643643
_raise_connection_failure(self.address, error, timeout_details=details)
644644
else:

0 commit comments

Comments
 (0)