Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-proctoring
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
edx-proctoring
Commits
86ded213
Commit
86ded213
authored
Oct 03, 2017
by
Attiya Ishaque
Committed by
GitHub
Oct 03, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #383 from edx/attiya/EDUCATOR-1441-add-logging
Add logging to find out the cause of error.
parents
5400744d
da59274b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
edx_proctoring/api.py
+4
-0
No files found.
edx_proctoring/api.py
View file @
86ded213
...
@@ -313,6 +313,10 @@ def get_exam_by_content_id(course_id, content_id):
...
@@ -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
)
proctored_exam
=
ProctoredExam
.
get_exam_by_content_id
(
course_id
,
content_id
)
if
proctored_exam
is
None
:
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
raise
ProctoredExamNotFoundException
serialized_exam_object
=
ProctoredExamSerializer
(
proctored_exam
)
serialized_exam_object
=
ProctoredExamSerializer
(
proctored_exam
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment