From c5174b38810096e43e7c26f0e76a80eeeec82364 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Thu, 3 Apr 2014 19:51:50 -0700 Subject: [PATCH] use command_output utility in echonest That's the last direct use of the subprocess calls. --- beetsplug/echonest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/echonest.py b/beetsplug/echonest.py index 2511eb2a1..4ac000885 100644 --- a/beetsplug/echonest.py +++ b/beetsplug/echonest.py @@ -298,7 +298,7 @@ class EchonestMetadataPlugin(plugins.BeetsPlugin): # Run the command. try: - subprocess.check_call(opts, close_fds=True, stderr=DEVNULL) + util.command_output(opts) except (OSError, subprocess.CalledProcessError) as exc: log.debug(u'echonest: encode failed: {0}'.format(exc)) util.remove(dest)