provinzkraut · GitHub

@provinzkraut

Copy link Copy Markdown

Member

Fix #1012.

Fix a regression introduced in #790 that would cause ValidationError and DecodeError raise in dec_hook to be wrapped in ValidationError again.

@provinzkraut

@provinzkraut provinzkraut changed the title fix #1012 fix wrapping ValidationError and DecodeError in ValidationError in dec_hook #1012

Apr 10, 2026

@jcrist

Copy link Copy Markdown

Member

Thanks for this! Going to push a quick fixup, but this is almost good to go.

@jcrist

jcrist

@provinzkraut

Copy link Copy Markdown

Member Author

Ah, good catch with the unnecessary check. I initially only checked for ValidationError and only added DecodeError later. Didn't backtrack to think if this still makes sense. Thanks!

@jcrist

@Siyet Siyet mentioned this pull request

Apr 12, 2026

Merged

Read the original on github.com ↗