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,
|
*self.command, stdin=stdpipe,
|
||||||
stdout=asyncio.subprocess.PIPE,
|
stdout=asyncio.subprocess.PIPE,
|
||||||
stderr=errpipe, env=self.env, cwd=self.cwd)
|
stderr=errpipe, env=self.env, cwd=self.cwd)
|
||||||
|
except asyncio.CancelledError:
|
||||||
|
raise
|
||||||
except Exception:
|
except Exception:
|
||||||
logging.exception(
|
logging.exception(
|
||||||
f"shell_command: Command ({self.name}) failed")
|
f"shell_command: Command ({self.name}) failed")
|
||||||
|
|
Loading…
Reference in New Issue