Commit e2fd700b by noraiz-anwar

handle grading service failure

parent f2167b45
...@@ -1120,11 +1120,14 @@ def remove_exam_attempt(attempt_id, requesting_user): ...@@ -1120,11 +1120,14 @@ def remove_exam_attempt(attempt_id, requesting_user):
instructor_service.delete_student_attempt(username, course_id, content_id, requesting_user=requesting_user) instructor_service.delete_student_attempt(username, course_id, content_id, requesting_user=requesting_user)
if grades_service: if grades_service:
# EDUCATOR-2141: Also remove any grade overrides that may exist # EDUCATOR-2141: Also remove any grade overrides that may exist
grades_service.undo_override_subsection_grade( try:
user_id=user_id, grades_service.undo_override_subsection_grade(
course_key_or_id=course_id, user_id=user_id,
usage_key_or_id=content_id, course_key_or_id=course_id,
) usage_key_or_id=content_id,
)
except Exception as ex: # pylint: disable=broad-except
log.exception(ex)
# see if the status transition this changes credit requirement status # see if the status transition this changes credit requirement status
if ProctoredExamStudentAttemptStatus.needs_credit_status_update(to_status): if ProctoredExamStudentAttemptStatus.needs_credit_status_update(to_status):
......
Markdown is supported
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