From c5502fb4d1ac4ba723e7c330d34b6030afcf0310 Mon Sep 17 00:00:00 2001 From: "nathdwek@laptop" Date: Wed, 12 Jul 2017 11:57:41 +0200 Subject: [PATCH] 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 --- beets/ui/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beets/ui/__init__.py b/beets/ui/__init__.py index 6ba80d22f..af2b79a19 100644 --- a/beets/ui/__init__.py +++ b/beets/ui/__init__.py @@ -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: