Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/websockets/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import asyncio
import os
import sys
from asyncio import CancelledError
from typing import Generator

from .asyncio.client import ClientConnection, connect
Expand Down Expand Up @@ -123,7 +124,7 @@ async def interactive_client(uri: str) -> None:
[incoming, outgoing],
return_when=asyncio.FIRST_COMPLETED,
)
except (KeyboardInterrupt, EOFError): # ^C, ^D # pragma: no cover
except CancelledError: # ^C, ^D # pragma: no cover
pass
finally:
incoming.cancel()
Expand Down