Skip to content
Snippets Groups Projects
Commit ace525dd authored by Ali-D-Akbar's avatar Ali-D-Akbar Committed by Awais Jibran
Browse files

add logs in get_problem_responses

parent 63567122
Branches
Tags
No related merge requests found
......@@ -79,7 +79,7 @@ const createProblemResponsesReportTask = (
})
.then(
json => dispatch(getTaskStatus(taskStatusEndpoint, json.task_id)),
() => dispatch(problemResponsesFailure(gettext('Unable to submit request to generate report.'))),
err => dispatch(problemResponsesFailure(gettext('Unable to submit request to generate report.'))), // eslint-disable-line no-unused-vars
);
};
......
......@@ -1055,6 +1055,7 @@ def get_problem_responses(request, course_id):
for problem_location in problem_locations.split(','):
problem_key = UsageKey.from_string(problem_location).map_into_course(course_key)
except InvalidKeyError:
log.exception("ProblemResponsesError: Location: %s", problem_locations)
return JsonResponseBadRequest(_("Could not find problem with this location."))
task = task_api.submit_calculate_problem_responses_csv(
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment