mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 07:21:13 -05:00
code review feedback
This commit is contained in:
@@ -81,7 +81,12 @@ def send_sms_to_provider(notification):
|
||||
if my_phone:
|
||||
my_phone = my_phone.decode("utf-8")
|
||||
if my_phone is None:
|
||||
raise Exception("what happened to the phone number")
|
||||
si = notification.service_id
|
||||
ji = notification.job_id
|
||||
jrn = notification.job_row_number
|
||||
raise Exception(
|
||||
f"The phone number for (Service ID: {si}; Job ID: {ji}; Job Row Number {jrn} was not found."
|
||||
)
|
||||
send_sms_kwargs = {
|
||||
"to": my_phone,
|
||||
"content": str(template),
|
||||
|
||||
Reference in New Issue
Block a user