diff options
author | Filipe LaĆns <lains@riseup.net> | 2023-10-13 05:49:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-13 05:49:55 (GMT) |
commit | 6478dea3c8aca7147d013d6d7f5bf7805b300589 (patch) | |
tree | bbf0e4644c22e24a2045e189c58e328a6f5cac32 /Lib/sysconfig | |
parent | b883cad06b12443014d57dcebd42d55f559b18f4 (diff) | |
download | cpython-6478dea3c8aca7147d013d6d7f5bf7805b300589.zip cpython-6478dea3c8aca7147d013d6d7f5bf7805b300589.tar.gz cpython-6478dea3c8aca7147d013d6d7f5bf7805b300589.tar.bz2 |
GH-110786: suppress BrokenPipeError on the sysconfig CLI (#110791)
Diffstat (limited to 'Lib/sysconfig')
-rw-r--r-- | Lib/sysconfig/__main__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/sysconfig/__main__.py b/Lib/sysconfig/__main__.py index e0c3756..d7257b9 100644 --- a/Lib/sysconfig/__main__.py +++ b/Lib/sysconfig/__main__.py @@ -242,4 +242,7 @@ def _main(): if __name__ == '__main__': - _main() + try: + _main() + except BrokenPipeError: + pass |