-
Type:
Task
-
Resolution: Fixed
-
Priority:
Unknown
-
Affects Version/s: None
-
Component/s: None
-
Not Needed
-
Ale-Cas has created PR #1566: PYTHON-4298 Fix _apply_local_threshold TypeError in mongo-python-driver
Issue Text:
Fix for TypeError caused by substraction between nulls when round_trip_time is None
```python
return [
> s for s in selection.server_descriptions if (s.round_trip_time - fastest) <= threshold
]
E TypeError: unsupported operand type(s) for -: 'NoneType' and 'NoneType'
```
Jira ticket: https://jira.mongodb.org/browse/PYTHON-4298
Linked to previous PR https://github.com/mongodb/mongo-python-driver/pull/1361