From 342846fa4d424a4d18dd2289d2b652bf53c97901 Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Fri, 8 Dec 2023 10:07:24 +0000 Subject: [PATCH] fix(errors): properly assign APIError.body (#274) --- src/anthropic/_exceptions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/anthropic/_exceptions.py b/src/anthropic/_exceptions.py index 0e2d5252..47568a94 100644 --- a/src/anthropic/_exceptions.py +++ b/src/anthropic/_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):