Pass notification ID to fire text as our reference

- also handle fire text errors, non-zero response code means error.
This commit is contained in:
Martyn Inglis
2016-03-10 13:22:45 +00:00
parent 209244ff19
commit c580b9c084
3 changed files with 44 additions and 11 deletions

View File

@@ -203,8 +203,9 @@ def send_sms(service_id, notification_id, encrypted_notification, created_at):
)
client.send_sms(
notification['to'],
template.replaced
to=notification['to'],
content=template.replaced,
notification_id=notification_id
)
except FiretextClientException as e:
current_app.logger.exception(e)