Skip to content

Commit

Permalink
fix(errors): properly assign APIError.body (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored Dec 8, 2023
1 parent 0ac62bc commit 342846f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/anthropic/_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 342846f

Please sign in to comment.