From fed5e4953cb922970c78cb052c60171b9aa2da03 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste VESLIN Date: Fri, 5 Mar 2021 10:05:00 +0100 Subject: [PATCH] fix: don't exit(1) if both err and out are not empty --- app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 1ad11f7..953a211 100644 --- a/app.py +++ b/app.py @@ -105,7 +105,8 @@ def ssh_process(ssh, input_ssh): err = err.strip() if err is not None else None if err: print(f"Error: \n{err}") - sys.exit(1) + if out is None: + sys.exit(1) pass