Skip to content

Commit

Permalink
Raise response text with exception, not JSON (#63)
Browse files Browse the repository at this point in the history
If kbatch-proxy returns 5xx errors, those are not valid JSON
but text.
  • Loading branch information
yuvipanda authored Sep 5, 2024
1 parent 121ff2e commit 8c13e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kbatch/kbatch/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def _request_action(
try:
r.raise_for_status()
except Exception:
logger.exception(r.json())
logger.exception(r.text)
raise

return r.json()
Expand Down

0 comments on commit 8c13e1b

Please sign in to comment.