Closed mbuesch closed 5 years ago
I just want to add that the changes to __main__.py
look more intrusive than they are.
It basically just indents the code one more level and adds a try-except block for handling and printing the exception.
You can check that by looking at the diff with whitespace changes ignored (-w).
Does this look reasonable, or is a change needed? Thanks a lot for your review.
Only issue is the change to the output caused by increasing the indenting level of the stuff inside the print.
Currently tinyprog just throws the exception to the console in case of communication errors on the port:
Serial:
USB:
To fix this all low level exceptions are caught and translated to a generic port exception. That port exception is then translated to a proper error message on stderr:
Serial:
USB: