Skip to content

Raise SaicApiClosedException when a closed client is reused - #32

Merged
nanomad merged 1 commit into
masterfrom
guard-closed-client
Oct 17, 2026
Merged

nanomad merged 1 commit into
masterfrom
guard-closed-client

Conversation

@nanomad

@nanomad nanomad commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #31. After close(), SaicApiClient.send() now raises SaicApiClosedException instead of the generic httpx RuntimeError. The retry policy does not retry it. Adds a test and fixes lint in tests/test_close.py.

@nanomad
nanomad merged commit fb5a8c7 into master Oct 17, 2026
8 checks passed
@nanomad
nanomad deleted the guard-closed-client branch October 17, 2026 12:50
This was referenced Oct 17, 2026
nanomad added a commit that referenced this pull request Oct 19, 2026
* Add close() to release the underlying httpx.AsyncClient (#31)

Closes #28

* Raise SaicApiClosedException when a closed client is reused (#32)

* Upgrade dependencies (#37)

* Upgrade dependencies

Bump dev tool constraints (pytest 9, pytest-asyncio 1, pytest-cov 7, mypy 2,
pylint 4, ruff 0.17) and refresh the lock file, which clears the open
Dependabot alerts on transitive dependencies. Ignore the new ruff rules
CPY001 and ICN001.

* Keep the tenacity floor at 9.0.0

* Bump GitHub Actions, test on Python 3.14, add Dependabot (#38)

* Bump GitHub Actions, test on Python 3.14, add Dependabot

* Update pre-commit hooks

* Bump version to 0.10.0 (#39)

* Require Python 3.12 and use PEP 695 type parameters (#40)

* Test on Python 3.15 (#41)

* chore: update lock file dependencies
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.

1 participant