shell_command: return False if an exception is raised
Signed-off- by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
d41c1c4c00
commit
8678e25427
|
@ -55,7 +55,7 @@ class ShellCommand:
|
||||||
except Exception:
|
except Exception:
|
||||||
logging.exception(
|
logging.exception(
|
||||||
f"shell_command: Command ({self.name}) failed")
|
f"shell_command: Command ({self.name}) failed")
|
||||||
return
|
return False
|
||||||
if verbose:
|
if verbose:
|
||||||
fd = proc.stdout.fileno()
|
fd = proc.stdout.fileno()
|
||||||
self.io_loop.add_handler(
|
self.io_loop.add_handler(
|
||||||
|
|
Loading…
Reference in New Issue