Skip to content

Commit

Permalink
Switch to using check_call for hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwilsdon committed Oct 16, 2019
1 parent bf9b43a commit f566b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beetsplug/hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def hook_function(**kwargs):
u' '.join(command_pieces), event)

try:
subprocess.Popen(command_pieces).wait()
subprocess.check_call(command_pieces)
except OSError as exc:
self._log.error(u'hook for {0} failed: {1}', event, exc)

Expand Down

0 comments on commit f566b34

Please sign in to comment.