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
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