From 8678e25427fcd9a44ca2e62006fda8cb392b364e Mon Sep 17 00:00:00 2001 From: Arksine Date: Sun, 29 Nov 2020 06:36:34 -0500 Subject: [PATCH] shell_command: return False if an exception is raised Signed-off- by: Eric Callahan --- moonraker/plugins/shell_command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moonraker/plugins/shell_command.py b/moonraker/plugins/shell_command.py index e0bf2f1..5fd33d7 100644 --- a/moonraker/plugins/shell_command.py +++ b/moonraker/plugins/shell_command.py @@ -55,7 +55,7 @@ class ShellCommand: except Exception: logging.exception( f"shell_command: Command ({self.name}) failed") - return + return False if verbose: fd = proc.stdout.fileno() self.io_loop.add_handler(