mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 16:24:08 -04:00
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:
@@ -623,6 +623,7 @@ def start_job(service_id, upload_id):
|
|||||||
try:
|
try:
|
||||||
upload_data = session['file_uploads'][upload_id]
|
upload_data = session['file_uploads'][upload_id]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
current_app.logger.exception('upload_id not in session')
|
||||||
return redirect(url_for('main.choose_template', service_id=service_id), code=301)
|
return redirect(url_for('main.choose_template', service_id=service_id), code=301)
|
||||||
|
|
||||||
if request.files or not upload_data.get('valid'):
|
if request.files or not upload_data.get('valid'):
|
||||||
|
|||||||
Reference in New Issue
Block a user