Skip to content

fix(protobuf_lark): replace undefined TypeException with TypeError#178

Open
SoundMatt wants to merge 1 commit into
COVESA:masterfrom
SoundMatt:fix/protobuf-lark-typeexception-assert-raise
Open

fix(protobuf_lark): replace undefined TypeException with TypeError#178
SoundMatt wants to merge 1 commit into
COVESA:masterfrom
SoundMatt:fix/protobuf-lark-typeexception-assert-raise

Conversation

@SoundMatt

Copy link
Copy Markdown

TypeException is not defined anywhere in the codebase. The else branch of matcher() would raise a NameError instead of the intended error when an unexpected node type is passed. Replace with the standard TypeError.

… matcher

`TypeException` is not defined anywhere; the standard built-in is
`TypeError`.  Hitting the else-branch of `matcher()` would raise a
`NameError` instead of the intended exception.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Signed-off-by: Matt Jones <47545907+SoundMatt@users.noreply.github.com>
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