This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2020-03-02.15:30:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The json.tool module doesn't catch BrokenPipeError:
$ echo "{}" | python3 -m json.tool | true
BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib64/python3.7/", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib64/python3.7/", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib64/python3.7/json/", line 45, in <module>
  File "/usr/lib64/python3.7/json/", line 41, in main
BrokenPipeError: [Errno 32] Broken pipe

json.tool should catch BrokenPipeError.
Date User Action Args
2020-03-02 15:30:28vstinnersetrecipients: + vstinner
2020-03-02 15:30:28vstinnersetmessageid: <>
2020-03-02 15:30:28vstinnerlinkissue39828 messages
2020-03-02 15:30:28vstinnercreate