Skip to content

Commit

Permalink
Merge pull request #1338 from GSA/argh_load_test
Browse files Browse the repository at this point in the history
fix load test
  • Loading branch information
terrazoon authored Sep 25, 2024
2 parents 5db03fe + 71417a1 commit 9cd1b8d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/delivery/send_to_providers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import json
import os
from contextlib import suppress
from urllib import parse

Expand Down Expand Up @@ -104,7 +105,9 @@ def send_sms_to_provider(notification):
recipient_lookup = f"+{recipient}"
else:
recipient_lookup = recipient
if recipient_lookup in current_app.config["SIMULATED_SMS_NUMBERS"]:
if recipient_lookup in current_app.config[
"SIMULATED_SMS_NUMBERS"
] and os.getenv("NOTIFY_ENVIRONMENT") in ["development", "test"]:
current_app.logger.info(hilite("#validate-phone-number fired"))
aws_pinpoint_client.validate_phone_number("01", recipient)
else:
Expand Down

0 comments on commit 9cd1b8d

Please sign in to comment.