Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove traceback for SSHException #2352

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bwinston-sdp
Copy link
Contributor

While running a transport, if an SSHException is encountered, a full traceback is printed to the error log (via util.tb_strings()). This is a less-than-ideal behavior, as we can't prevent this Python traceback from surfacing to the user (even when the actual error was handled gracefully). Looking at the rest of the codebase, it looks like the only other places util.tb_strings() is used is when catching a generic Exception (which makes sense, as this is by definition an unexpected failure and needs to be debugged). I propose removing the traceback log for SSHException.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant