Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pytools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Klöckner
pytools
Commits
f981cb0f
Commit
f981cb0f
authored
5 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Decode stderr from UTF-8 in prefork, to avoid \n'd together mess for error messages
parent
c8321a19
No related branches found
No related tags found
1 merge request
!31
Decode stderr in prefork
Pipeline
#19812
passed
5 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pytools/prefork.py
+1
-1
1 addition, 1 deletion
pytools/prefork.py
with
1 addition
and
1 deletion
pytools/prefork.py
+
1
−
1
View file @
f981cb0f
...
@@ -53,7 +53,7 @@ class DirectForker(object):
...
@@ -53,7 +53,7 @@ class DirectForker(object):
if
error_on_nonzero
and
popen
.
returncode
:
if
error_on_nonzero
and
popen
.
returncode
:
raise
ExecError
(
"
status %d invoking
'
%s
'
: %s
"
raise
ExecError
(
"
status %d invoking
'
%s
'
: %s
"
%
(
popen
.
returncode
,
"
"
.
join
(
cmdline
),
%
(
popen
.
returncode
,
"
"
.
join
(
cmdline
),
stderr_data
))
stderr_data
.
decode
(
"
utf-8
"
,
errors
=
"
replace
"
)
))
return
popen
.
returncode
,
stdout_data
,
stderr_data
return
popen
.
returncode
,
stdout_data
,
stderr_data
except
OSError
as
e
:
except
OSError
as
e
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment