mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
Switch to using check_call for hooks
This commit is contained in:
parent
4d55e6dfbb
commit
430eab2cf0
1 changed files with 4 additions and 1 deletions
|
|
@ -105,7 +105,10 @@ class HookPlugin(BeetsPlugin):
|
|||
u' '.join(command_pieces), event)
|
||||
|
||||
try:
|
||||
subprocess.Popen(command_pieces).wait()
|
||||
subprocess.check_call(command_pieces)
|
||||
except subprocess.CalledProcessError as exc:
|
||||
self._log.error(u'hook for {0} exited with status {1}',
|
||||
event, exc.returncode)
|
||||
except OSError as exc:
|
||||
self._log.error(u'hook for {0} failed: {1}', event, exc)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue