Skip to content

Don't raise high-level exceptions in proto conversion function#246

Merged
llucax merged 1 commit into
frequenz-floss:v0.x.xfrom
llucax:proto-value-err
Jul 9, 2026
Merged

Don't raise high-level exceptions in proto conversion function#246
llucax merged 1 commit into
frequenz-floss:v0.x.xfrom
llucax:proto-value-err

Conversation

@llucax

@llucax llucax commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

UnrecognizedEnumValueError should only be raised from high-level wrappers, not protobuf conversion functions. Replace it with a simple ValueError, in this case someone just called the function with the wrong arguments.

`UnrecognizedEnumValueError` should only be raised from high-level
wrappers, not protobuf conversion functions. Replace it with a simple
`ValueError`, in this case someone just called the function with the
wrong arguments.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
@llucax llucax requested a review from a team as a code owner July 9, 2026 11:42
@llucax llucax requested review from florian-wagner-frequenz and removed request for a team July 9, 2026 11:42
@github-actions github-actions Bot added part:tests Affects the unit, integration and performance (benchmarks) tests part:microgrid Affects the microgrid protobuf definitions labels Jul 9, 2026
@llucax llucax requested a review from Marenz July 9, 2026 11:43
@llucax llucax self-assigned this Jul 9, 2026
@llucax llucax added this to the v0.4.1 milestone Jul 9, 2026
@llucax llucax added the cmd:skip-release-notes It is not necessary to update release notes for this PR label Jul 9, 2026
@llucax llucax enabled auto-merge July 9, 2026 11:43
@llucax llucax added this pull request to the merge queue Jul 9, 2026
Merged via the queue into frequenz-floss:v0.x.x with commit e385d08 Jul 9, 2026
12 of 13 checks passed
@llucax llucax deleted the proto-value-err branch July 9, 2026 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmd:skip-release-notes It is not necessary to update release notes for this PR part:microgrid Affects the microgrid protobuf definitions part:tests Affects the unit, integration and performance (benchmarks) tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants