mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-05 02:41:14 -05:00
keep on flakin the flake world
This commit is contained in:
@@ -61,8 +61,8 @@ def receive_sns_sms():
|
||||
# since this is an issue with our service <-> number mapping, or no inbound_sms service permission
|
||||
# we should still tell SNS that we received it successfully
|
||||
current_app.logger.warning(
|
||||
f"Mapping between service and inbound number: {inbound_number} is broken, \
|
||||
or service does not have permission to receive inbound sms"
|
||||
f"Mapping between service and inbound number: {inbound_number} is broken, "
|
||||
f"or service does not have permission to receive inbound sms"
|
||||
)
|
||||
return jsonify(
|
||||
result="success", message="SMS-SNS callback succeeded"
|
||||
|
||||
@@ -58,12 +58,12 @@ def sns_notification_handler(data, headers):
|
||||
response.raise_for_status()
|
||||
except Exception as e:
|
||||
current_app.logger.warning(
|
||||
f"Attempt to raise_for_status()SubscriptionConfirmation Type \
|
||||
message files for response: {response.text} with error {e}"
|
||||
f"Attempt to raise_for_status()SubscriptionConfirmation Type "
|
||||
f"message files for response: {response.text} with error {e}"
|
||||
)
|
||||
raise InvalidRequest(
|
||||
"SES-SNS callback failed: attempt to raise_for_status()SubscriptionConfirmation \
|
||||
Type message failed", 400
|
||||
"SES-SNS callback failed: attempt to raise_for_status()SubscriptionConfirmation "
|
||||
"Type message failed", 400
|
||||
)
|
||||
current_app.logger.info("SES-SNS auto-confirm subscription callback succeeded")
|
||||
return message
|
||||
|
||||
Reference in New Issue
Block a user