FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Validate non-string UUID types by Letsch22 · Pull Request #174 · python-validators/validators · GitHub

Repository navigation

Validate non-string UUID types - #174

Merged
kvesteri merged 3 commits into
python-validators:masterfrom
Letsch22:uuid-check-many-types
Sep 3, 2020
Merged

kvesteri merged 3 commits into
python-validators:masterfrom
Letsch22:uuid-check-many-types

Conversation

Letsch22 commented Sep 1, 2020

Copy link
Copy Markdown
Contributor

Right now, passing a type to uuid that cannot be pattern matched results in TypeError: expected string or bytes-like object.

This fixes that by catching any potential TypeError and returning False in those cases.

Letsch22 changed the title Validate invalid UUID types Validate non-string UUID types Sep 1, 2020
kvesteri merged commit 0ea54dd into python-validators:master Sep 3, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL