Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
a9552311
Commit
a9552311
authored
Sep 18, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
print unicode in subproc_call
parent
82330eb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tensorpack/utils/concurrency.py
tensorpack/utils/concurrency.py
+2
-2
No files found.
tensorpack/utils/concurrency.py
View file @
a9552311
...
@@ -230,11 +230,11 @@ def subproc_call(cmd, timeout=None):
...
@@ -230,11 +230,11 @@ def subproc_call(cmd, timeout=None):
return
output
,
0
return
output
,
0
except
subprocess
.
TimeoutExpired
as
e
:
except
subprocess
.
TimeoutExpired
as
e
:
logger
.
warn
(
"Command timeout!"
)
logger
.
warn
(
"Command timeout!"
)
logger
.
warn
(
e
.
output
)
logger
.
warn
(
e
.
output
.
decode
(
'utf-8'
)
)
return
e
.
output
,
-
1
return
e
.
output
,
-
1
except
subprocess
.
CalledProcessError
as
e
:
except
subprocess
.
CalledProcessError
as
e
:
logger
.
warn
(
"Command failed: {}"
.
format
(
e
.
returncode
))
logger
.
warn
(
"Command failed: {}"
.
format
(
e
.
returncode
))
logger
.
warn
(
e
.
output
)
logger
.
warn
(
e
.
output
.
decode
(
'utf-8'
)
)
return
e
.
output
,
e
.
returncode
return
e
.
output
,
e
.
returncode
except
Exception
:
except
Exception
:
logger
.
warn
(
"Command failed to run: {}"
.
format
(
cmd
))
logger
.
warn
(
"Command failed to run: {}"
.
format
(
cmd
))
...
...
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