-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.
Milestone
Description
If cli output is attached to a broken pipe, it will crash. Example: 'az vm list | jfhksfh'
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/runpy.py", line 170, in _run_module_as_main
"main", mod_spec)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Users/joe/azure-cli/src/azure/cli/main.py", line 5, in
sys.exit(azure.cli.main.main(sys.argv[1:]))
File "/Users/joe/azure-cli/src/azure/cli/main.py", line 47, in main
OutputProducer(formatter=formatter, file=file).out(cmd_result.result)
File "/Users/joe/azure-cli/src/azure/cli/_output.py", line 62, in out
print(self.formatter(obj), file=self.file)
BrokenPipeError: [Errno 32] Broken pipe
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.