Skip to content

feat: Add typed exception API for registry HTTP errors. - #12

Merged
bvanelli merged 1 commit into
mainfrom
add-typed-exceptions
Aug 11, 2026
Merged

feat: Add typed exception API for registry HTTP errors.#12
bvanelli merged 1 commit into
mainfrom
add-typed-exceptions

Conversation

@bvanelli

Copy link
Copy Markdown
Owner

Introduce Response.raise_for_status() raising RegistryAPIError (with ManifestNotFoundError on 404 and strict expected-status checks on push paths), replace asserts and ValueError with meaningful typed exceptions (UnauthorizedError, ValidationError), guard the blob upload Location header, and escape rich markup in CLI error output.

Introduce Response.raise_for_status() raising RegistryAPIError (with
ManifestNotFoundError on 404 and strict expected-status checks on push
paths), replace asserts and ValueError with meaningful typed exceptions
(UnauthorizedError, ValidationError), guard the blob upload Location
header, and escape rich markup in CLI error output.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@bvanelli
bvanelli merged commit f4bbb79 into main Aug 11, 2026
6 checks passed
@bvanelli
bvanelli deleted the add-typed-exceptions branch August 11, 2026 17:12
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