shell_command: propogate asyncio cancel exceptions
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
1d3e5564a2
commit
0592181f54
|
@ -311,6 +311,8 @@ class ShellCommand:
|
|||
*self.command, stdin=stdpipe,
|
||||
stdout=asyncio.subprocess.PIPE,
|
||||
stderr=errpipe, env=self.env, cwd=self.cwd)
|
||||
except asyncio.CancelledError:
|
||||
raise
|
||||
except Exception:
|
||||
logging.exception(
|
||||
f"shell_command: Command ({self.name}) failed")
|
||||
|
|
Loading…
Reference in New Issue