mirror of
https://github.com/beetbox/beets.git
synced 2026-01-29 11:35:27 +01:00
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:
parent
e742f8694c
commit
c5502fb4d1
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue