Refactored non ascii letter recipients test

This commit is contained in:
Ken Tsang
2017-06-15 12:44:19 +01:00
parent c8f72bc513
commit 6e3bedb633
2 changed files with 3 additions and 2 deletions

View File

@@ -333,6 +333,7 @@ def send_test_preview(service_id, template_id, filetype):
def _check_messages(service_id, template_type, upload_id, letters_as_pdf=False):
if not session.get('upload_data'):
# if we just return a `redirect` (302) object here, we'll get errors when we try and unpack in the
# check_messages route - so raise a werkzeug.routing redirect to ensure that doesn't happen.