reverted back to the StopIteration in queryset.next that one didnt have to be changed (test stalled)

This commit is contained in:
Bastien Gérard 2018-09-04 19:18:40 +02:00
parent f29b93c762
commit cf9df548ca

View File

@ -1481,7 +1481,7 @@ class BaseQuerySet(object):
"""Wrap the result in a :class:`~mongoengine.Document` object. """Wrap the result in a :class:`~mongoengine.Document` object.
""" """
if self._limit == 0 or self._none: if self._limit == 0 or self._none:
return raise StopIteration
raw_doc = self._cursor.next() raw_doc = self._cursor.next()