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 af35b25 commit 8913a74Copy full SHA for 8913a74
mongoengine/queryset/base.py
@@ -1227,7 +1227,7 @@ def read_concern(self, read_concern):
1227
raise TypeError("%r is not a valid read concern." % (read_concern,))
1228
1229
queryset = self.clone()
1230
- queryset._read_concern = ReadConcern(**read_concern)
+ queryset._read_concern = ReadConcern(**read_concern) if read_concern is not None else None
1231
queryset._cursor_obj = None # we need to re-create the cursor object whenever we apply read_concern
1232
return queryset
1233
0 commit comments