Skip to content

Gracefully handle unknown message types#141

Merged
rikhil-s merged 1 commit intomasterfrom
handle-unknown-message-types
Mar 16, 2026
Merged

Gracefully handle unknown message types#141
rikhil-s merged 1 commit intomasterfrom
handle-unknown-message-types

Conversation

@rikhil-s
Copy link
Contributor

Add try/catch to gracefully handle unknown message types

@rikhil-s rikhil-s self-assigned this Mar 16, 2026
@rikhil-s rikhil-s requested a review from dumitrugutu March 16, 2026 15:08
LOGGER.warning("Session was ended forcefully by an event handler")
raise
except KeyError as kex:
LOGGER.debug(f"Unknown handler for message type: {message_type} {kex=}")
Copy link
Contributor

Choose a reason for hiding this comment

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

should probably log an error instead

@rikhil-s rikhil-s merged commit 4104a8a into master Mar 16, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants