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

TypeErrors on UUID validation actually result in KeyErrors #89

Open
rtibbles opened this issue Jul 30, 2020 · 0 comments · May be fixed by #163
Open

TypeErrors on UUID validation actually result in KeyErrors #89

rtibbles opened this issue Jul 30, 2020 · 0 comments · May be fixed by #163

Comments

@rtibbles
Copy link
Member

https://github.com/learningequality/morango/blob/master/morango/models/fields/uuids.py#L40

This line references the invalid message on the self.error_messages dict, which seems not to have this key (at least not all the time). This causes a KeyError to be raised, leading to uncaught errors during field validation.

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 a pull request may close this issue.

1 participant