From d33c25bdac7eb33890e887e6a717aedbfad541c1 Mon Sep 17 00:00:00 2001 From: Leo Hemsted Date: Mon, 16 Oct 2017 13:24:06 +0100 Subject: [PATCH] update research mode notifications after callback has been made if the callback fails, they should still tech fail --- app/delivery/send_to_providers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/delivery/send_to_providers.py b/app/delivery/send_to_providers.py index e0202c897..38c1e0015 100644 --- a/app/delivery/send_to_providers.py +++ b/app/delivery/send_to_providers.py @@ -54,8 +54,8 @@ def send_sms_to_provider(notification): if service.research_mode or notification.key_type == KEY_TYPE_TEST: notification.billable_units = 0 - update_notification(notification, provider) send_sms_response(provider.get_name(), str(notification.id), notification.to) + update_notification(notification, provider) else: try: provider.send_sms(