use command_output utility in echonest

That's the last direct use of the subprocess calls.
This commit is contained in:
Adrian Sampson 2014-04-03 19:51:50 -07:00
parent d407db725f
commit c5174b3881

View file

@ -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)