mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 06:21:50 -05:00
Added a way to handle complaint responses from SES.
At this point we are just logging the message so that we can confirm the contents of the SES message. refer to: https://www.pivotaltracker.com/story/show/157969699
This commit is contained in:
@@ -38,6 +38,10 @@ def process_ses_response(ses_request):
|
||||
notification_type = ses_message['bounce']['bounceType'] # permanent or not
|
||||
else:
|
||||
notification_type = 'Temporary'
|
||||
if notification_type == 'Complaint':
|
||||
current_app.logger.info("Complaint from SES: \n{}".format(ses_message))
|
||||
return
|
||||
|
||||
try:
|
||||
aws_response_dict = get_aws_responses(notification_type)
|
||||
except KeyError:
|
||||
|
||||
Reference in New Issue
Block a user