Skip to content

Commit

Permalink
fix broken go live email notification
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Kehl committed Nov 27, 2024
1 parent 1277635 commit 639d2e2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/celery/provider_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from app.delivery import send_to_providers
from app.enums import NotificationStatus
from app.exceptions import NotificationTechnicalFailureException
from app.utils import hilite, utc_now
from app.utils import utc_now

# This is the amount of time to wait after sending an sms message before we check the aws logs and look for delivery
# receipts
Expand Down Expand Up @@ -188,9 +188,7 @@ def deliver_email(self, notification_id):
if recipient:
notification.recipient = json.loads(recipient)

print(hilite(f"HERE IS THE NOTIFICATION {notification.serialize_for_csv()}"))
if recipient:
send_to_providers.send_email_to_provider(notification)
send_to_providers.send_email_to_provider(notification)
except EmailClientNonRetryableException:
current_app.logger.exception(f"Email notification {notification_id} failed")
update_notification_status_by_id(notification_id, "technical-failure")
Expand Down

0 comments on commit 639d2e2

Please sign in to comment.