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

pull/6/head
Jean-Baptiste VESLIN 5 years ago committed by GitHub
parent d3b9734a32
commit fed5e4953c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save