Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx
edx-platform
Commits
8b961de7
Commit
8b961de7
authored
Aug 14, 2014
by
Justin Riley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ProctorModuleInfo: raise exception if course DNE
parent
c21906a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
lms/djangoapps/courseware/module_tree_reset.py
+2
-0
No files found.
lms/djangoapps/courseware/module_tree_reset.py
View file @
8b961de7
...
@@ -125,6 +125,8 @@ class ProctorModuleInfo(object):
...
@@ -125,6 +125,8 @@ class ProctorModuleInfo(object):
def
__init__
(
self
,
course_id
):
def
__init__
(
self
,
course_id
):
self
.
ms
=
modulestore
()
self
.
ms
=
modulestore
()
self
.
course
=
self
.
ms
.
get_course
(
course_id
)
self
.
course
=
self
.
ms
.
get_course
(
course_id
)
if
not
self
.
course
:
raise
Exception
(
"course does not exist:
%
s"
%
course_id
)
self
.
get_released_proctor_modules
()
self
.
get_released_proctor_modules
()
def
_get_student_obj
(
self
,
student
):
def
_get_student_obj
(
self
,
student
):
...
...
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