shell_command: return False if an exception is raised

Signed-off- by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2020-11-29 06:36:34 -05:00
parent d41c1c4c00
commit 8678e25427
1 changed files with 1 additions and 1 deletions

View File

@ -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(