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
9e181304
Commit
9e181304
authored
Sep 05, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix nopathtoitem error
parent
5658e6bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
lms/djangoapps/open_ended_grading/utils.py
+5
-2
No files found.
lms/djangoapps/open_ended_grading/utils.py
View file @
9e181304
from
xmodule.modulestore
import
search
from
xmodule.modulestore
import
search
from
xmodule.modulestore.django
import
modulestore
from
xmodule.modulestore.django
import
modulestore
from
xmodule.modulestore.exceptions
import
ItemNotFoundError
from
xmodule.modulestore.exceptions
import
ItemNotFoundError
,
NoPathToItem
def
does_location_exist
(
course_id
,
location
):
def
does_location_exist
(
course_id
,
location
):
"""
"""
...
@@ -12,5 +12,8 @@ def does_location_exist(course_id, location):
...
@@ -12,5 +12,8 @@ def does_location_exist(course_id, location):
search
.
path_to_location
(
modulestore
(),
course_id
,
location
)
search
.
path_to_location
(
modulestore
(),
course_id
,
location
)
return
True
return
True
except
ItemNotFoundError
:
except
ItemNotFoundError
:
#If the problem cannot be found at the location received from the grading controller server, it has been deleted by the course author.
# If the problem cannot be found at the location received from the grading controller server, it has been deleted by the course author.
return
False
except
NoPathToItem
:
# If the problem can be found, but there is no path to it, then it is a draft.
return
False
return
False
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