Do not warn about a BrokenPipeError we do consider

For some reason Python always warns about a BrokenPipeError on
stderr even if it is caught.

Fixes #2622
This commit is contained in:
nathdwek@laptop 2017-07-12 11:57:41 +02:00
parent e742f8694c
commit c5502fb4d1

View file

@ -1276,7 +1276,7 @@ def main(args=None):
except IOError as exc:
if exc.errno == errno.EPIPE:
# "Broken pipe". End silently.
pass
sys.stderr.close()
else:
raise
except KeyboardInterrupt: