Merge pull request #5285 from minusf/master

typo: may -> many
This commit is contained in:
José Padilla 2017-07-20 22:30:58 -04:00 committed by GitHub
commit 3eade5abeb

View File

@ -129,8 +129,8 @@ class ValidationError(APIException):
if code is None:
code = self.default_code
# For validation failures, we may collect may errors together, so the
# details should always be coerced to a list if not already.
# For validation failures, we may collect many errors together,
# so the details should always be coerced to a list if not already.
if not isinstance(detail, dict) and not isinstance(detail, list):
detail = [detail]