Skip to content

fix: distinguish JSON parse errors from validation errors in metadata#264

Merged
lubomir merged 1 commit into
release-engineering:developmentfrom
guillermodotn:dev
Jun 10, 2026
Merged

fix: distinguish JSON parse errors from validation errors in metadata#264
lubomir merged 1 commit into
release-engineering:developmentfrom
guillermodotn:dev

Conversation

@guillermodotn

Copy link
Copy Markdown
Contributor

Split Compose._load_metadata() single except ValueError into two branches:
json.JSONDecodeError ("not valid JSON") and ValueError/TypeError
("not supported by this version of productmd"). Add exception chaining and tests.

Fix: #110

… loading

Assisted-by: Claude Opus <noreply@anthropic.com>
@guillermodotn guillermodotn requested a review from lubomir June 9, 2026 18:02

@lubomir lubomir left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change itself looks good to me, but the lock refresh seems out of place here.

@guillermodotn

Copy link
Copy Markdown
Contributor Author

True, dropping uv.lock

@guillermodotn guillermodotn requested a review from lubomir June 10, 2026 10:38
@lubomir lubomir merged commit 7792110 into release-engineering:development Jun 10, 2026
21 of 22 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.

2 participants