Be silent when the receiver closes the pipe.
This commit is contained in:
+1
-1
@@ -298,7 +298,7 @@ def main():
|
|||||||
"""Main entry point for the CLI with exception handling."""
|
"""Main entry point for the CLI with exception handling."""
|
||||||
try:
|
try:
|
||||||
_main()
|
_main()
|
||||||
except KeyboardInterrupt:
|
except (KeyboardInterrupt, BrokenPipeError):
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
print(f"Error: {e}", file=sys.stderr)
|
print(f"Error: {e}", file=sys.stderr)
|
||||||
|
|||||||
Reference in New Issue
Block a user