From 4ac1ddbe2ab6a174f6fc68d17f93bf48dc75c3a7 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Fri, 2 Jan 2026 22:38:05 +0000 Subject: [PATCH] Be silent when the receiver closes the pipe. --- randquik/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/randquik/cli.py b/randquik/cli.py index 9a6b1ec..e2dbe6d 100644 --- a/randquik/cli.py +++ b/randquik/cli.py @@ -298,7 +298,7 @@ def main(): """Main entry point for the CLI with exception handling.""" try: _main() - except KeyboardInterrupt: + except (KeyboardInterrupt, BrokenPipeError): sys.exit(1) except ValueError as e: print(f"Error: {e}", file=sys.stderr)