Add logging for session not being set bug

This is so we can be alerted to it before our users alert us to it.
This commit is contained in:
Chris Hill-Scott
2018-03-29 12:07:37 +01:00
parent e74d261ec3
commit becee15e1e

View File

@@ -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'):