Skip to content

TypeErrors on UUID validation actually result in KeyErrors #89

@rtibbles

Description

@rtibbles

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions