mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -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:
|
||||
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'):
|
||||
|
||||
Reference in New Issue
Block a user