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

Configurable raise exception on missing templates #74

Merged
merged 1 commit into from Oct 18, 2022
Merged

Configurable raise exception on missing templates #74

merged 1 commit into from Oct 18, 2022

Conversation

mands
Copy link
Contributor

@mands mands commented Dec 2, 2020

Currently an exception is only raised if debug is True, however the web app may be built as a container in CD, resulting in the process of generating the templates may be different to local development (we hit this and ended up sending blank emails to all our users as the template was not installed correctly during CD but worked fine locally).

This PR adds an additional setting (HERALD_RAISE_MISSING_TEMPLATES) - it defaults to True which I think may be the safer default.

Cheers!

@peterfarrell peterfarrell self-requested a review April 7, 2021 18:55
Copy link
Collaborator

@peterfarrell peterfarrell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable to me as the settings name.

@mands Could you also update the documentation in the README to reflect this change? Also, please update the CHANGELOG tbd section with this change well.

@peterfarrell peterfarrell merged commit 23f3c7b into worthwhile:master Oct 18, 2022
@peterfarrell peterfarrell mentioned this pull request Oct 18, 2022
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 this pull request may close these issues.

None yet

2 participants