From 07eddede1aea25d995559bef0f2b00d89a7eb2dc Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Fri, 8 Dec 2023 10:07:15 +0000 Subject: [PATCH] fix(errors): properly assign APIError.body --- src/finch/_exceptions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/finch/_exceptions.py b/src/finch/_exceptions.py index 8d69569f..ba7b00fa 100644 --- a/src/finch/_exceptions.py +++ b/src/finch/_exceptions.py @@ -41,6 +41,7 @@ def __init__(self, message: str, request: httpx.Request, *, body: object | None) super().__init__(message) self.request = request self.message = message + self.body = body class APIResponseValidationError(APIError):