Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
codejail
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
codejail
Commits
4e1d1922
Commit
4e1d1922
authored
Dec 08, 2014
by
Adam
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #31 from edx/adam/add-logging
add more logging for TNL-835
parents
528fa2bb
f1688aaf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
codejail/safe_exec.py
+4
-5
No files found.
codejail/safe_exec.py
View file @
4e1d1922
...
...
@@ -151,11 +151,10 @@ def safe_exec(code, globals_dict, files=None, python_path=None, slug=None,
extra_files
=
extra_files
,
)
if
res
.
status
!=
0
:
raise
SafeExecException
(
"Couldn't execute jailed code: {error} with status code: {status}"
.
format
(
error
=
res
.
stderr
,
status
=
res
.
status
)
)
raise
SafeExecException
((
"Couldn't execute jailed code: stdout: {res.stdout!r}, "
"stderr: {res.stderr!r} with status code: {res.status}"
)
.
format
(
res
=
res
))
globals_dict
.
update
(
json
.
loads
(
res
.
stdout
))
...
...
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