mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
Temporary test fix
This should be removed when the SES endpoint is removed
This commit is contained in:
committed by
Richard Chapman
parent
5abd2a527a
commit
368da49469
@@ -37,6 +37,11 @@ def sns_callback_handler():
|
|||||||
def process_ses_response(ses_request):
|
def process_ses_response(ses_request):
|
||||||
client_name = 'SES'
|
client_name = 'SES'
|
||||||
try:
|
try:
|
||||||
|
|
||||||
|
# TODO: remove this check once the sns_callback_handler is removed
|
||||||
|
if not isinstance(ses_request, dict):
|
||||||
|
ses_request = json.loads(ses_request)
|
||||||
|
|
||||||
errors = validate_callback_data(data=ses_request, fields=['Message'], client_name=client_name)
|
errors = validate_callback_data(data=ses_request, fields=['Message'], client_name=client_name)
|
||||||
if errors:
|
if errors:
|
||||||
return errors, 400, {}
|
return errors, 400, {}
|
||||||
|
|||||||
Reference in New Issue
Block a user