mirror of
https://github.com/beetbox/beets.git
synced 2025-12-09 18:12:19 +01:00
use command_output utility in echonest
That's the last direct use of the subprocess calls.
This commit is contained in:
parent
d407db725f
commit
c5174b3881
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue