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

Fix error message when board is not found #38

Open
michal-narajowski opened this issue Sep 15, 2021 · 0 comments
Open

Fix error message when board is not found #38

michal-narajowski opened this issue Sep 15, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@michal-narajowski
Copy link

This should be handled gracefully with an informative error message instead of:

ERROR:root:invalid literal for int() with base 10: 'CM0'
Traceback (most recent call last):
  File "/home/michaln/Workspace/auto-pts/autoptsclient_common.py", line 1159, in start
    return self.main(args)
  File "/home/michaln/Workspace/auto-pts/autoptsclient_common.py", line 1178, in main
    self.args = self.parse_args(_args)
  File "/home/michaln/Workspace/auto-pts/autoptsclient_common.py", line 1223, in parse_args
    self.check_args(args)
  File "/home/michaln/Workspace/auto-pts/autoptsclient_common.py", line 1264, in check_args
    not os.path.exists('COM' + str(int(tty_file["/dev/ttyS".__len__():]) + 1)):
ValueError: invalid literal for int() with base 10: 'CM0'
@michal-narajowski michal-narajowski added the bug Something isn't working label Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant