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
f4280377
Commit
f4280377
authored
Jun 18, 2014
by
Tim Babych
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not print exception message below stacktrace
parent
4477c285
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
common/lib/capa/capa/inputtypes.py
+1
-1
common/lib/xmodule/xmodule/capa_base.py
+5
-1
No files found.
common/lib/capa/capa/inputtypes.py
View file @
f4280377
...
...
@@ -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 @
f4280377
...
...
@@ -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