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

exec_command(f'SetRTTTelnetPort 19021') raises JLinkException when success #171

Open
jupe opened this issue Apr 13, 2023 · 1 comment
Open

Comments

@jupe
Copy link

jupe commented Apr 13, 2023

jlink.exec_command(f'SetRTTTelnetPort 19021') seems to raises always JLinkException('RTT Telnet Port set to 19021') even in success case. Tested with latest release.

I expects that success case doesn't raise anything, only failure cases. Workaround is to catch exception and pass it.

@hkpeprah
Copy link
Contributor

Hm. It seems like it the function doesn't expect any output string (read: error string), and raises an exception if there is one. Might not be the best way to go about this, but maybe worth adding a separate new function to capture this use case instead?

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

No branches or pull requests

2 participants