Skip to content

Commit c6c22e1

Browse files
Update deepgram/clients/speak/v1/websocket/client.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent feb2680 commit c6c22e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deepgram/clients/speak/v1/websocket/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ def wait_for_complete(self):
604604

605605
if self._speaker is None:
606606
self._logger.error("speaker is None. Return immediately")
607-
return
607+
raise DeepgramError("Speaker is not initialized")
608608

609609
self._speaker.wait_for_complete()
610610
self._logger.notice("wait_for_complete succeeded")

0 commit comments

Comments
 (0)