Skip to content

Commit

Permalink
portal/handle_matrix_message: add better logging for NotImplementedError
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <[email protected]>
  • Loading branch information
sumnerevans committed Jan 18, 2024
1 parent 86e05b1 commit 6d7b4f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion linkedin_matrix/portal.py
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,8 @@ async def handle_matrix_message(
try:
await self._handle_matrix_message(sender, message, event_id)
except NotImplementedError as e:
await self._send_bridge_error(str(e), certain_failure=True)
self.log.exception(f"Got NotImplementedError while handling {event_id}")
await self._send_bridge_error(f"Event is unsupported: {e}", certain_failure=True)
exception = e
status = MessageSendCheckpointStatus.UNSUPPORTED
except Error as e:
Expand Down

0 comments on commit 6d7b4f0

Please sign in to comment.