Skip to content

Commit 5466484

Browse files
committed
oops fix typing pt2
1 parent 379dfb6 commit 5466484

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pymongo/asynchronous/mongo_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2653,7 +2653,7 @@ async def handle(
26532653
self.completed_handshake,
26542654
self.service_id,
26552655
)
2656-
assert self._client._topology is not None
2656+
assert self.client._topology is not None
26572657
await self.client._topology.handle_error(self.server_address, err_ctx)
26582658

26592659
async def __aenter__(self) -> _MongoClientErrorHandler:

pymongo/synchronous/mongo_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2639,7 +2639,7 @@ def handle(
26392639
self.completed_handshake,
26402640
self.service_id,
26412641
)
2642-
assert self._client._topology is not None
2642+
assert self.client._topology is not None
26432643
self.client._topology.handle_error(self.server_address, err_ctx)
26442644

26452645
def __enter__(self) -> _MongoClientErrorHandler:

0 commit comments

Comments
 (0)