mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-05 10:42:41 -05:00
initial
This commit is contained in:
@@ -151,8 +151,6 @@ def persist_notification(
|
||||
def send_notification_to_queue_detached(
|
||||
key_type, notification_type, notification_id, queue=None
|
||||
):
|
||||
if key_type == KeyType.TEST:
|
||||
print("send_notification_to_queue_detached key is test key")
|
||||
|
||||
if notification_type == NotificationType.SMS:
|
||||
if not queue:
|
||||
|
||||
@@ -117,7 +117,7 @@ def fetch_potential_service(inbound_number, provider_name):
|
||||
|
||||
if not has_inbound_sms_permissions(service.permissions):
|
||||
current_app.logger.error(
|
||||
'Service "{}" does not allow inbound SMS'.format(service.id)
|
||||
'Service "{}" does not allow inbound SMS'.format(service.id), exc_info=True
|
||||
)
|
||||
return False
|
||||
|
||||
|
||||
@@ -47,7 +47,8 @@ def sns_notification_handler(data, headers):
|
||||
validate_sns_cert(message)
|
||||
except Exception as e:
|
||||
current_app.logger.error(
|
||||
f"SES-SNS callback failed: validation failed with error: Signature validation failed with error {e}"
|
||||
f"SES-SNS callback failed: validation failed with error: Signature validation failed",
|
||||
exc_info=True,
|
||||
)
|
||||
raise InvalidRequest("SES-SNS callback failed: validation failed", 400)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user