Skip to content

Commit 4c23ee0

Browse files
Update pymongo/asynchronous/mongo_client.py
Co-authored-by: Noah Stapp <[email protected]>
1 parent 2653a56 commit 4c23ee0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymongo/asynchronous/mongo_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1219,7 +1219,7 @@ def __eq__(self, other: Any) -> bool:
12191219
if hasattr(self, "_topology"):
12201220
return self._topology == other._topology
12211221
else:
1222-
raise InvalidOperation("Cannot perform operation until client is connected")
1222+
raise InvalidOperation("Cannot compare client equality until both clients are connected")
12231223
return NotImplemented
12241224

12251225
def __ne__(self, other: Any) -> bool:

0 commit comments

Comments
 (0)