We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 328ee92 commit fcbc218Copy full SHA for fcbc218
src/prompt_toolkit/application/application.py
@@ -1470,7 +1470,10 @@ def _ignore(event: E) -> None:
1470
session: PromptSession[None] = PromptSession(
1471
message=wait_text, key_bindings=key_bindings
1472
)
1473
- await session.app.run_async()
+ try:
1474
+ await session.app.run_async()
1475
+ except KeyboardInterrupt:
1476
+ pass # Control-c pressed. Don't propagate this error.
1477
1478
1479
@contextmanager
0 commit comments