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

ValueInvalid has default repr, which contains less information than str #358

Open
lilydjwg opened this issue Aug 8, 2018 · 0 comments
Open

Comments

@lilydjwg
Copy link

lilydjwg commented Aug 8, 2018

I got a MultipleInvalid exception, and its repr delegates to .errors, which is a list of other errors. The ValueInvalid errors I got has pretty useless repr:

ValueInvalid('not a valid value',)

Its str form is much more informative:

not a valid value @ data['some_key'][0]
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

No branches or pull requests

1 participant