Commit da59274b by attiyaishaque

Add logging to find out the cause of error.

parent 5400744d
......@@ -313,6 +313,10 @@ def get_exam_by_content_id(course_id, content_id):
"""
proctored_exam = ProctoredExam.get_exam_by_content_id(course_id, content_id)
if proctored_exam is None:
log.exception(
'Cannot find the proctored exams in this course %s with content_id: %s',
course_id, content_id
)
raise ProctoredExamNotFoundException
serialized_exam_object = ProctoredExamSerializer(proctored_exam)
......
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