Skip to content

Commit 4e3009a

Browse files
committed
remove check for max_wire_version on OpError
1 parent 85ac162 commit 4e3009a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pymongo/change_stream.py

-2
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,6 @@ def try_next(self):
301301
self._resume()
302302
change = self._cursor._try_next(False)
303303
except OperationFailure as exc:
304-
if exc.max_wire_version is None:
305-
raise
306304
is_resumable = ((exc.max_wire_version >= 9 and
307305
exc.has_error_label("ResumableChangeStreamError")) or
308306
(exc.max_wire_version < 9 and

0 commit comments

Comments
 (0)