Merge branch 'drop_py2_support' of github.com:bagerard/mongoengine into drop_py2_support
This commit is contained in:
commit
d493f71c4e
@ -260,8 +260,7 @@ class BaseQuerySet:
|
|||||||
except StopIteration:
|
except StopIteration:
|
||||||
return result
|
return result
|
||||||
|
|
||||||
# If we were able to retrieve the 2nd doc, rewind the cursor and
|
# If we were able to retrieve the 2nd doc, raise the MultipleObjectsReturned exception.
|
||||||
# raise the MultipleObjectsReturned exception.
|
|
||||||
raise queryset._document.MultipleObjectsReturned(
|
raise queryset._document.MultipleObjectsReturned(
|
||||||
"2 or more items returned, instead of 1"
|
"2 or more items returned, instead of 1"
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user