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
237fca06
Commit
237fca06
authored
May 15, 2014
by
polesye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CustomResponse: fix log message.
parent
b3233f29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
common/lib/capa/capa/responsetypes.py
+9
-8
No files found.
common/lib/capa/capa/responsetypes.py
View file @
237fca06
...
...
@@ -1521,17 +1521,18 @@ class CustomResponse(LoncapaResponse):
# ordered list of answers
submission
=
[
student_answers
[
k
]
for
k
in
idset
]
except
Exception
as
err
:
msg
=
_
(
"[courseware.capa.responsetypes.customresponse] error getting"
" student answer from {student_answers}"
"
\n
idset = {idset}, error = {err}"
)
.
format
(
student_answers
=
student_answers
,
msg
=
u"[courseware.capa.responsetypes.customresponse] {message}
\n
idset = {idset}, error = {err}"
.
format
(
message
=
_
(
"error getting student answer from {student_answers}"
)
.
format
(
student_answers
=
student_answers
),
idset
=
idset
,
err
=
err
)
;
)
log
.
error
(
msg
)
log
.
error
(
"[courseware.capa.responsetypes.customresponse] error getting"
" student answer from
%
s"
"
\n
idset =
%
s, error =
%
s"
,
student_answers
,
idset
,
err
)
raise
Exception
(
msg
)
# global variable in context which holds the Presentation MathML from dynamic math input
...
...
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