Skip to content

fix: always raise for status if convert=True#120

Merged
lu-pl merged 1 commit into
mainfrom
lupl/raise-for-status-convert-False
Feb 1, 2026
Merged

fix: always raise for status if convert=True#120
lu-pl merged 1 commit into
mainfrom
lupl/raise-for-status-convert-False

Conversation

@lu-pl

@lu-pl lu-pl commented Feb 1, 2026

Copy link
Copy Markdown
Owner

The change makes it so that httpx.Response.raise_for_status is always called if convert=True; currently, if convert=True and raise_for_status=False, non-2xx status responses are passed to the converter logic, which likely raises a json.DecodeError.

Closes #119.

The change makes it so that `httpx.Response.raise_for_status` is
always called if `convert=True`; currently, if `convert=True` and
`raise_for_status=False`, non-2xx status responses are passed to the
converter logic, which likely raises a `json.DecodeError`.

Closes #119.
@lu-pl lu-pl merged commit 81ae28e into main Feb 1, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

raise_for_status should only be applied if convert=False

1 participant