From 173261a69f845223e8dbe72a5e9836b0af9e393e Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sun, 13 Feb 2022 09:03:50 +0000 Subject: [PATCH] Emails: Fix crash due to missing connection --- app/tasks/emails.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/tasks/emails.py b/app/tasks/emails.py index 2e6d5293..7972b847 100644 --- a/app/tasks/emails.py +++ b/app/tasks/emails.py @@ -116,7 +116,7 @@ def send_user_email(email: str, locale: str, subject: str, text: str, html=None, @celery.task(rate_limit="25/m") def send_anon_email(email: str, locale: str, subject: str, text: str, html=None): return send_email_with_reason(email, locale, subject, text, html, - lazy_gettext("You are receiving this email because someone (hopefully you) entered your email address as a user's email.")) + lazy_gettext("You are receiving this email because someone (hopefully you) entered your email address as a user's email."), None) def send_single_email(notification, locale):