diff --git a/apps/cic-notify/cic_notify/tasks/sms/africastalking.py b/apps/cic-notify/cic_notify/tasks/sms/africastalking.py index af48ac58..e52b030f 100644 --- a/apps/cic-notify/cic_notify/tasks/sms/africastalking.py +++ b/apps/cic-notify/cic_notify/tasks/sms/africastalking.py @@ -56,7 +56,7 @@ class AfricasTalkingNotifier: response = self.api_client.send(message=message, recipients=[recipient]) logg.debug(f'africastalking response no-sender-id {response}') - recipients = response.get('Recipients') + recipients = response.get('SMSMessageData').get('Recipients') if len(recipients) != 1: status = response.get('SMSMessageData').get('Message') diff --git a/apps/cic-notify/setup.cfg b/apps/cic-notify/setup.cfg index d4606598..ea3a2f05 100644 --- a/apps/cic-notify/setup.cfg +++ b/apps/cic-notify/setup.cfg @@ -28,6 +28,7 @@ packages = cic_notify cic_notify.db cic_notify.db.models + cic_notify.ext cic_notify.tasks.sms cic_notify.runnable scripts =