Skip to content

Commit e10856c

Browse files
committed
PYTHON-5297 - AsyncMongoClient connection error causes UnboundLocalError
1 parent 3c2ce16 commit e10856c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pymongo/pool_shared.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,12 +346,10 @@ async def _configured_protocol_interface(
346346
ssl=ssl_context,
347347
)
348348
except _CertificateError:
349-
transport.abort()
350349
# Raise _CertificateError directly like we do after match_hostname
351350
# below.
352351
raise
353352
except (OSError, SSLError) as exc:
354-
transport.abort()
355353
# We raise AutoReconnect for transient and permanent SSL handshake
356354
# failures alike. Permanent handshake failures, like protocol
357355
# mismatch, will be turned into ServerSelectionTimeoutErrors later.

0 commit comments

Comments
 (0)