Be silent when the receiver closes the pipe.
This commit is contained in:
1 parent
5747e9a183
commit
4ac1ddbe2a
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user