Be silent when the receiver closes the pipe.

This commit is contained in:
2026-01-02 22:38:05 +00:00
parent 5747e9a183
commit 4ac1ddbe2a
+1 -1
View File
@@ -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)