Skip to content

Commit

Permalink
Body message fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xacadil committed Jun 20, 2024
1 parent 31c5ced commit 6e648ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target_api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def validate_response(self, response: requests.Response) -> None:
"""Validate HTTP response."""
if response.status_code in [429] or 500 <= response.status_code < 600:
msg = self.response_error_message(response)
error = {"status_code": response.status_code, "body": response.text}
error = {"status_code": response.status_code, "body": msg}
raise RetriableAPIError(error)
elif 400 <= response.status_code < 500:
msg = self.response_error_message(response)
Expand Down

0 comments on commit 6e648ed

Please sign in to comment.