We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05ede54 commit 6019a1eCopy full SHA for 6019a1e
pymongo/topology_description.py
@@ -322,7 +322,7 @@ def apply_selector(
322
if address:
323
# Ignore selectors when explicit address is requested.
324
description = self.server_descriptions().get(address)
325
- return [description] if description.is_server_type_known else []
+ return [description] if description and description.is_server_type_known else []
326
327
# Primary selection fast path.
328
if self.topology_type == TOPOLOGY_TYPE.ReplicaSetWithPrimary and type(selector) is Primary:
0 commit comments