Updates cic-notify to fix minor bugs.

This commit is contained in:
2021-05-27 19:00:41 +03:00
parent 5bfe9fcd4a
commit 5b89c151f9
2 changed files with 2 additions and 1 deletions

View File

@@ -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')