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

Reduce strictness of file path validation #64

Merged
merged 4 commits into from
Dec 18, 2024

Conversation

tyler-romero
Copy link
Member

@tyler-romero tyler-romero commented Dec 18, 2024

"Its better to ask forgiveness than permission"

The check for a local path was too strict - in fact sometimes this will fail when cv2 would have no issue reading the file - eg over a network. We should only fail here when cv2 actually throws an exception.

Copy link
Contributor

@timmarkhuff timmarkhuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tyler-romero tyler-romero merged commit ce6a462 into main Dec 18, 2024
6 checks passed
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