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

reset errno at the beginning of Python function that check it in the end #323

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

christian-rauch
Copy link
Collaborator

Another Python module may set the errno but not inform the user about an error. This will affect the errno checking in the Python bindings apriltag_new and apriltag_detect. Avoid this by resetting errno at the beginning of those functions.

Fixes #320 .

@christian-rauch christian-rauch merged commit 1110fd6 into AprilRobotics:master Mar 26, 2024
19 checks passed
@christian-rauch christian-rauch deleted the reset_errno branch March 26, 2024 19:10
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.

Python bindings for apriltag_detect throws error when no detection is found
3 participants