mirror of
https://github.com/beetbox/beets.git
synced 2025-12-28 11:32:30 +01:00
replaygain: handle RG tool invocation errors (GC-469)
This commit is contained in:
parent
531025f799
commit
2d4b91fa6d
1 changed files with 5 additions and 1 deletions
|
|
@ -203,7 +203,11 @@ class ReplayGainPlugin(BeetsPlugin):
|
|||
cmd = cmd + [syspath(i.path) for i in items]
|
||||
|
||||
log.debug(u'replaygain: analyzing {0} files'.format(len(items)))
|
||||
output = call(cmd)
|
||||
try:
|
||||
output = call(cmd)
|
||||
except ReplayGainError as exc:
|
||||
log.warn(u'replaygain: analysis failed ({0})'.format(exc))
|
||||
return
|
||||
log.debug(u'replaygain: analysis finished')
|
||||
results = parse_tool_output(output)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue