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:
|
||||
return result
|
||||
|
||||
# If we were able to retrieve the 2nd doc, rewind the cursor and
|
||||
# raise the MultipleObjectsReturned exception.
|
||||
# If we were able to retrieve the 2nd doc, raise the MultipleObjectsReturned exception.
|
||||
raise queryset._document.MultipleObjectsReturned(
|
||||
"2 or more items returned, instead of 1"
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user