Python Forum
How do I suppress "Cmd exec error."
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I suppress "Cmd exec error."
#1
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
Reply
#2
Is there no Python exception traceback?
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020