Gracefully handle unknown message types by rikhil-s · Pull Request #141 · speechmatics/speechmatics-python
-
Notifications
You must be signed in to change notification settings - Fork 23
Merged
Conversation
| 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters