From efe0f3b99b05ecdebba06cc393254dcca6e26e95 Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Fri, 3 Nov 2017 10:15:09 +0000 Subject: [PATCH] Downgrade error to warning --- app/notifications/notifications_ses_callback.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/notifications/notifications_ses_callback.py b/app/notifications/notifications_ses_callback.py index 2ed34037b..897345f5e 100644 --- a/app/notifications/notifications_ses_callback.py +++ b/app/notifications/notifications_ses_callback.py @@ -75,9 +75,10 @@ def process_ses_response(ses_request): notification_status ) if not notification: - error = "SES callback failed: notification either not found or already updated " \ + warning = "SES callback failed: notification either not found or already updated " \ "from sending. Status {} for notification reference {}".format(notification_status, reference) - return error + current_app.logger.warning(warning) + return if not aws_response_dict['success']: current_app.logger.info(