Skip to content

Commit cca5ebc

Browse files
committed
fix: update exception in quickstart
1 parent 351d477 commit cca5ebc

File tree

1 file changed

+2
-2
lines changed
  • docs/user-guide/concepts/experimental/bidirectional-streaming

1 file changed

+2
-2
lines changed

docs/user-guide/concepts/experimental/bidirectional-streaming/quickstart.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ async def main():
198198
inputs=[audio_io.input()],
199199
outputs=[audio_io.output()]
200200
)
201-
except KeyboardInterrupt:
202-
print("\nConversation interrupted by user")
201+
except asyncio.CancelledError:
202+
print("\nConversation cancelled by user")
203203
finally:
204204
# stop() should only be called after run() exits
205205
await agent.stop()

0 commit comments

Comments
 (0)