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
Contributor

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>
@gunnar-mb

Copy link
Copy Markdown
Collaborator

Combine with #162 and update in all places where TypeException is mentioned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants