Python Forum

Full Version: How do I suppress "Cmd exec error."
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do I suppress "Cmd exec error."


import paramiko

# ...

cli_x = "something unknown"
ssh_client = paramiko.SSHClient()
stdin, stdout, stderr = ssh_client.exec_command(cli_x)
I'm having a hard time finding documentation on these generated messages, which are NOT part of stdout, or stderr. All I want to do is suppress the output.


Output:
Syntax error while parsing 'something unknown' Cmd exec error.
Thanks
x
Is there no Python exception traceback?