Merge branch 'drop_py2_support' of github.com:bagerard/mongoengine into drop_py2_support

This commit is contained in:
Bastien Gérard 2020-04-25 14:05:30 +02:00
commit d493f71c4e

View File

@ -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"
)