Insert a row for the mapping of notification to email_reply_to for one off notifications.

This commit is contained in:
Rebecca Law
2017-10-11 16:23:31 +01:00
parent 04914d711a
commit 769a7a275b
3 changed files with 36 additions and 6 deletions

View File

@@ -138,7 +138,7 @@ def validate_template(template_id, personalisation, service, notification_type):
def check_service_email_reply_to_id(service_id, reply_to_id):
if not (reply_to_id is None):
try:
reply_to = dao_get_reply_to_by_id(service_id, reply_to_id)
dao_get_reply_to_by_id(service_id, reply_to_id)
except NoResultFound:
message = 'email_reply_to_id {} does not exist in database for service id {}'\
.format(reply_to_id, service_id)