Skip to content

Commit 90246f1

Browse files
committed
fix
1 parent b2e673b commit 90246f1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/elevenlabs/conversational_ai/conversation.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,10 @@ async def wait_for_session_end(self) -> Optional[str]:
859859
"""
860860
if not self._task:
861861
raise RuntimeError("Session not started.")
862-
await self._task
862+
try:
863+
await self._task
864+
except asyncio.CancelledError:
865+
pass
863866
return self._conversation_id
864867

865868
async def send_user_message(self, text: str):

0 commit comments

Comments
 (0)