Skip to content

Commit 6d57549

Browse files
committed
fix option pass
1 parent 6a47fc6 commit 6d57549

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pymongo/asynchronous/pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ async def connect(self, handler: Optional[_MongoClientErrorHandler] = None) -> A
10801080

10811081
try:
10821082
networking_interface = await _configured_protocol_interface(
1083-
self.address, self.opts, context
1083+
self.address, self.opts, context=context
10841084
)
10851085
# Catch KeyboardInterrupt, CancelledError, etc. and cleanup.
10861086
except BaseException as error:

pymongo/synchronous/pool.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,9 @@ def connect(self, handler: Optional[_MongoClientErrorHandler] = None) -> Connect
10751075
context = dict(has_created_socket=False)
10761076

10771077
try:
1078-
networking_interface = _configured_socket_interface(self.address, self.opts, context)
1078+
networking_interface = _configured_socket_interface(
1079+
self.address, self.opts, context=context
1080+
)
10791081
# Catch KeyboardInterrupt, CancelledError, etc. and cleanup.
10801082
except BaseException as error:
10811083
with self.lock:

0 commit comments

Comments
 (0)