Update mmg send_sms to include cid and request headers

Use mmg to send_sms
This commit is contained in:
Rebecca Law
2016-04-06 17:35:14 +01:00
parent 90194cbbb8
commit 340f8ceaf6
2 changed files with 9 additions and 5 deletions

View File

@@ -320,7 +320,7 @@ def send_sms_code(encrypted_verification):
mmg_client.send_sms(validate_and_format_phone_number(verification_message['to']),
verification_message['secret_code'],
'send-sms-code')
except Exception as e:
except MMGClientException as e:
current_app.logger.exception(e)