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

This commit is contained in:
Jean-Baptiste VESLIN
2021-03-05 10:05:00 +01:00
committed by GitHub
parent d3b9734a32
commit fed5e4953c

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