◐ Shell
clean mode source ↗

Gracefully handle unknown message types by rikhil-s · Pull Request #141 · speechmatics/speechmatics-python

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Merged

rikhil-s

merged 1 commit into

Mar 16, 2026

Conversation

@rikhil-s

Add try/catch to gracefully handle unknown message types

vigneshumapathy

dumitrugutu

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=}")

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