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

feat: @validator now catches Exception #254

Merged
merged 2 commits into from
Mar 23, 2023

Conversation

yozachar
Copy link
Collaborator

@yozachar yozachar commented Mar 23, 2023

  • validator decorator catches Exception
  • it returns ValidationFailure with reason when exception happens
  • between and length follow the same pattern as every other module
  • adds py.typed, includes it in poetry build
  • updates a few dependencies
  • fix link to documentation

Related items

Issues

This PR will be closed in an hour.

- `validator` decorator catches `Exception`
- it returns `ValidationFailure` with `reason` when exception happens
- `between` and `length` follow the same pattern as every other module
- adds `py.typed`, includes it in `poetry build`
- updates a few dependencies
@yozachar yozachar added review PR: Can be reviewed development Issue/PR: Modification in workflows, packaging, etc. maintenance PR: Alters existing source code labels Mar 23, 2023
@yozachar yozachar self-assigned this Mar 23, 2023
@yozachar yozachar merged commit 7c61275 into python-validators:master Mar 23, 2023
@yozachar yozachar removed the review PR: Can be reviewed label Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development Issue/PR: Modification in workflows, packaging, etc. maintenance PR: Alters existing source code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documentation link from README.md leads to 404
1 participant