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

Add extra checks for when serial is None #74

Merged
merged 6 commits into from
Aug 1, 2024

Conversation

SiboVG
Copy link
Collaborator

@SiboVG SiboVG commented Aug 1, 2024

I tested the lib on my Mac today, and found that when setting the serialport to None, the program would crash because some parts of TMC_UART referenced self.ser without a None-check. This PR adds extra error checks for this.

Strangely, this only occurred after I switched my app's virtual environment from a normal venv to a Poetry venv. In any case, this error handling should be implemented.

@Chr157i4n Chr157i4n merged commit 0846122 into Chr157i4n:main Aug 1, 2024
7 checks passed
@SiboVG SiboVG deleted the catch-serial-none branch August 1, 2024 17:39
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.

2 participants