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

Catch invalid URIs #133

Merged
merged 1 commit into from
Jul 14, 2015
Merged

Catch invalid URIs #133

merged 1 commit into from
Jul 14, 2015

Conversation

pezholio
Copy link
Contributor

Have been looking at Data-Liberation-Front/csvlint.io#180, and have managed to chase it down.

While Ruby's URI library treats almost anything as a URI, it will still choke if there are invalid characters. This PR catches these errors and returns an ArgumentError instead, which the Field.validate_column will catch and return a value of false, rather than crapping out unhelpfully

Floppy added a commit that referenced this pull request Jul 14, 2015
@Floppy Floppy merged commit 85b819c into master Jul 14, 2015
@Floppy Floppy deleted the feature-catch-invalid-uris branch July 14, 2015 09:47
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