Defend against status code 00 or 0 from mmg

This commit is contained in:
Rebecca Law
2016-04-20 11:07:21 +01:00
parent 41ce691704
commit f283379646
2 changed files with 9 additions and 6 deletions

View File

@@ -6,6 +6,12 @@ from app.clients import (STATISTICS_DELIVERED, STATISTICS_FAILURE)
from app.clients.sms import (SmsClient, SmsClientException)
mmg_response_map = {
'00': {
"message": 'Delivered',
"notification_statistics_status": STATISTICS_DELIVERED,
"success": True,
"notification_status": 'delivered'
},
'0': {
"message": 'Delivered',
"notification_statistics_status": STATISTICS_DELIVERED,