We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5e0e26 commit 7358fc4Copy full SHA for 7358fc4
livekit/room.py
@@ -174,7 +174,12 @@ async def _listen_task(self) -> None:
174
175
event = wait_event_future.result()
176
if event.room_event.room_handle == self._ffi_handle.handle: # type: ignore
177
- self._on_room_event(event.room_event)
+ try:
178
+ self._on_room_event(event.room_event)
179
+ except Exception as e:
180
+ logging.error(
181
+ 'error running user callback for %s: %s',
182
+ event.room_event.WhichOneof('message'), e)
183
184
# wait for the subscribers to process the event
185
# before processing the next one
0 commit comments