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

3
app.py
View File

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