Merge pull request #1366 from alphagov/downgrade-error-msg

Downgrade error message
This commit is contained in:
Rebecca Law
2017-11-06 13:26:49 +00:00
committed by GitHub
2 changed files with 5 additions and 17 deletions

View File

@@ -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 " \
"from sending. Status {} for notification reference {}".format(notification_status, reference)
return error
warning = "SES callback failed: notification either not found or already updated " \
"from sending. Status {} for notification reference {}".format(notification_status, reference)
current_app.logger.warning(warning)
return
if not aws_response_dict['success']:
current_app.logger.info(