Skip to content

Clean up EmailTemplateException #185

@dleehr

Description

@dleehr

While reviewing #184 I notice that EmailTemplateException is defined in models.py and raised there. I introduced this pattern in c39b287 and it should be refactored.

EmailTemplateException is the only exception defined in models.py, and it's only raised when a DoesNotExist exception is encountered. Since that's already an appropriate model-layer exception, this logic should be moved out to the consumers. Put another way, the model should not be concerned with setup at this level.

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