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
808bc659
Commit
808bc659
authored
Jun 19, 2014
by
Tim Babych
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4151 from edx/i18n-dont-print-exception-msg-twice
Do not print exception message below stacktrace
parents
4477c285
ceb25fc4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
AUTHORS
+3
-2
common/lib/capa/capa/inputtypes.py
+1
-1
common/lib/xmodule/xmodule/capa_base.py
+5
-1
No files found.
AUTHORS
View file @
808bc659
...
...
@@ -153,4 +153,5 @@ Muhammad Ammar <mammar@edx.org>
Abdallah Nassif <abdoosh00@gmail.com>
Johnny Brown <johnnybrown7@gmail.com>
Ben McMorran <bmcmorran@edx.org>
Mat Peterson <mpeterson@edx.org>
\ No newline at end of file
Mat Peterson <mpeterson@edx.org>
Tim Babych <tim.babych@gmail.com>
\ No newline at end of file
common/lib/capa/capa/inputtypes.py
View file @
808bc659
...
...
@@ -221,7 +221,7 @@ class InputTypeBase(object):
self
.
status
=
state
.
get
(
'status'
,
'unanswered'
)
try
:
# Pre-parse and pro
p
cess all the declared requirements.
# Pre-parse and process all the declared requirements.
self
.
process_requirements
()
# Call subclass "constructor" -- means they don't have to worry about calling
...
...
common/lib/xmodule/xmodule/capa_base.py
View file @
808bc659
...
...
@@ -249,7 +249,11 @@ class CapaMixin(CapaFields):
# e.g. in the CMS
msg
=
u'<p>{msg}</p>'
.
format
(
msg
=
cgi
.
escape
(
msg
))
msg
+=
u'<p><pre>{tb}</pre></p>'
.
format
(
tb
=
cgi
.
escape
(
traceback
.
format_exc
()))
# just the traceback, no message - it is already present above
tb
=
cgi
.
escape
(
u''
.
join
([
'Traceback (most recent call last):
\n
'
]
+
traceback
.
format_tb
(
sys
.
exc_info
()[
2
])))
)
# create a dummy problem with error message instead of failing
problem_text
=
(
u'<problem><text><span class="inline-error">'
u'Problem {url} has an error:</span>{msg}</text></problem>'
.
format
(
...
...
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