mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-11 21:48:20 +02:00
Cleanup pt 2
This commit is contained in:
parent
be68c8f562
commit
fb834824d6
4 changed files with 4 additions and 11 deletions
|
@ -38,7 +38,7 @@ def send_templated_email(
|
|||
"""
|
||||
|
||||
if flag_is_active(None, "disable_email_sending") and not settings.IS_PRODUCTION:
|
||||
message = "Could not send email. Email sending is disabled due to switch 'disable_email_sending'."
|
||||
message = "Could not send email. Email sending is disabled due to flag 'disable_email_sending'."
|
||||
raise EmailSendingError(message)
|
||||
|
||||
template = get_template(template_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue