From becee15e1e1eac031887d7a867067c78963aff1f Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Thu, 29 Mar 2018 12:07:37 +0100 Subject: [PATCH] Add logging for session not being set bug This is so we can be alerted to it before our users alert us to it. --- app/main/views/send.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/main/views/send.py b/app/main/views/send.py index 0d419c513..a9c215e0f 100644 --- a/app/main/views/send.py +++ b/app/main/views/send.py @@ -623,6 +623,7 @@ def start_job(service_id, upload_id): try: upload_data = session['file_uploads'][upload_id] except KeyError: + current_app.logger.exception('upload_id not in session') return redirect(url_for('main.choose_template', service_id=service_id), code=301) if request.files or not upload_data.get('valid'):