Skip to content

fix(client): raise AuthenticationError instead of RuntimeError on login failure#34

Merged
jlopez merged 1 commit intomainfrom
fix/issue-32-login-raises-authentication-error
Mar 2, 2026
Merged

fix(client): raise AuthenticationError instead of RuntimeError on login failure#34
jlopez merged 1 commit intomainfrom
fix/issue-32-login-raises-authentication-error

Conversation

@jlopez
Copy link
Owner

@jlopez jlopez commented Mar 2, 2026

_http_login() now raises AuthenticationError (like _relogin() does)
so consumers can catch a single typed exception for all credential failures.

Fixes: #32
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

…in failure

`_http_login()` now raises `AuthenticationError` (like `_relogin()` does)
so consumers can catch a single typed exception for all credential failures.

Fixes: #32
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jlopez jlopez merged commit 772e552 into main Mar 2, 2026
4 checks passed
@jlopez jlopez deleted the fix/issue-32-login-raises-authentication-error branch March 2, 2026 17:12
jlopez added a commit that referenced this pull request Mar 2, 2026
### Bug Fixes

* **ci:** update uv.lock on release-please PRs ([#38](#38)) ([f7cf4ad](f7cf4ad))
* **client:** introduce SocketryError base class; clean up exception hierarchy ([#36](#36)) ([20516ec](20516ec)), closes [#33](#33)
* **client:** raise AuthenticationError instead of RuntimeError on login failure ([#34](#34)) ([772e552](772e552)), closes [#32](#32)
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.login() should raise AuthenticationError instead of RuntimeError

1 participant