Refactor callback invocation for on_transcription_stopped in DailyTransportClient for improved readability

This commit is contained in:
richtermb
2025-07-29 11:53:41 -07:00
parent c1df19982c
commit 67107d02ed

View File

@@ -1237,7 +1237,9 @@ class DailyTransportClient(EventHandler):
stopped_by_error: Whether stopped due to error.
"""
logger.debug("Transcription stopped")
self._call_event_callback(self._callbacks.on_transcription_stopped, stopped_by, stopped_by_error)
self._call_event_callback(
self._callbacks.on_transcription_stopped, stopped_by, stopped_by_error
)
def on_transcription_error(self, message):
"""Handle transcription error events.