fix: don't exit(1) if both err and out are not empty

pull/6/head
Jean-Baptiste VESLIN 2021-03-05 10:05:00 +01:00 committed by GitHub
parent d3b9734a32
commit fed5e4953c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

1
app.py
View File

@ -105,6 +105,7 @@ def ssh_process(ssh, input_ssh):
err = err.strip() if err is not None else None
if err:
print(f"Error: \n{err}")
if out is None:
sys.exit(1)
pass