Skip to content

Return a result instead of raising on network failures - #21

Merged
jamielinux merged 1 commit into
mainfrom
jnguyen/issue-20
Oct 6, 2026
Merged

jamielinux merged 1 commit into
mainfrom
jnguyen/issue-20

Conversation

@jamielinux

Copy link
Copy Markdown
Member

Fixes #20.

Previously a network problem crashed the caller with an exception instead of setting was_able_to_verify to False as per the README.

Now both API calls return a result with a request_failed or request_failed_due_to_timeout error code, matching what the other SDKs do.

Fixes #20.

Previously a network problem crashed the caller with an exception
instead of setting `was_able_to_verify` to `False` as per the README.

Now both API calls return a result with a `request_failed` or
`request_failed_due_to_timeout` error code, matching what the other
SDKs do.
@jamielinux jamielinux self-assigned this Oct 6, 2026
@jamielinux
jamielinux requested a review from greenberga October 6, 2026 10:48
@jamielinux
jamielinux merged commit af3b4c8 into main Oct 6, 2026
2 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.

client.py raises uncaught exception on network error.

2 participants