Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
ab840424
Commit
ab840424
authored
12 years ago
by
Vik Paruchuri
Browse files
Options
Downloads
Patches
Plain Diff
Fix raised error
parent
ed1f4bdd
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/lib/capa/capa/responsetypes.py
+6
-2
6 additions, 2 deletions
common/lib/capa/capa/responsetypes.py
with
6 additions
and
2 deletions
common/lib/capa/capa/responsetypes.py
+
6
−
2
View file @
ab840424
...
...
@@ -1853,8 +1853,12 @@ class OpenEndedResponse(LoncapaResponse):
prompt
=
self
.
xml
.
find
(
'
prompt
'
)
rubric
=
self
.
xml
.
find
(
'
openendedrubric
'
)
if
not
oeparam
or
not
prompt
or
not
rubric
:
raise
ValueError
(
"
openendedresponse missing required parameters.
"
)
if
oeparam
is
None
:
raise
ValueError
(
"
No oeparam found in problem xml.
"
)
if
prompt
is
None
:
raise
ValueError
(
"
No prompt found in problem xml.
"
)
if
rubric
is
None
:
raise
ValueError
(
"
No rubric found in problem xml.
"
)
self
.
_parse
(
oeparam
,
prompt
,
rubric
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment