avoid message is none scenario

This commit is contained in:
Kenneth Kehl
2024-12-13 08:43:23 -08:00
parent 0d280d608a
commit 26e53a80ba
2 changed files with 3 additions and 2 deletions

View File

@@ -129,7 +129,8 @@ def deliver_sms(self, notification_id):
)
# Code branches off to send_to_providers.py
message_id = send_to_providers.send_sms_to_provider(notification)
update_notification_message_id(notification_id, message_id)
if message_id is not None: # can be none if technical failure happens
update_notification_message_id(notification_id, message_id)
# DEPRECATED
# We have to put it in UTC. For other timezones, the delay