From 31a1fae8a3ae51d89e7cec9d5da24ce180e37360 Mon Sep 17 00:00:00 2001 From: v4rgas <66626747+v4rgas@users.noreply.github.com> Date: Fri, 9 May 2025 12:11:40 -0400 Subject: [PATCH] error: missing update --- fastapi/exceptions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fastapi/exceptions.py b/fastapi/exceptions.py index 44d4ada86d7e4..1279283f772a9 100644 --- a/fastapi/exceptions.py +++ b/fastapi/exceptions.py @@ -147,8 +147,9 @@ class FastAPIError(RuntimeError): class ValidationException(Exception): - def __init__(self, errors: Sequence[Any]) -> None: + def __init__(self, errors: Sequence[Any], mistakes: Sequence[Any]) -> None: self._errors = errors + self._mistakes = mistakes def errors(self) -> Sequence[Any]: return self._errors