Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
repo
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
YongjieWang
repo
Commits
aef087d9
Commit
aef087d9
authored
Dec 23, 2015
by
Matthias Putz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: returning exit code from subprocess call
parent
13508fdb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
main.py
main.py
+1
-1
repo
repo
+1
-1
No files found.
main.py
View file @
aef087d9
...
@@ -525,7 +525,7 @@ def _Main(argv):
...
@@ -525,7 +525,7 @@ def _Main(argv):
argv
.
extend
(
rce
.
extra_args
)
argv
.
extend
(
rce
.
extra_args
)
try
:
try
:
# os.execv(__file__, argv)
# os.execv(__file__, argv)
subprocess
.
call
([
sys
.
executable
]
+
argv
)
result
=
subprocess
.
call
([
sys
.
executable
]
+
argv
)
except
OSError
as
e
:
except
OSError
as
e
:
print
(
'fatal: cannot restart repo after upgrade'
,
file
=
sys
.
stderr
)
print
(
'fatal: cannot restart repo after upgrade'
,
file
=
sys
.
stderr
)
print
(
'fatal:
%
s'
%
e
,
file
=
sys
.
stderr
)
print
(
'fatal:
%
s'
%
e
,
file
=
sys
.
stderr
)
...
...
repo
View file @
aef087d9
...
@@ -805,7 +805,7 @@ def main(orig_args):
...
@@ -805,7 +805,7 @@ def main(orig_args):
me
.
extend
(
extra_args
)
me
.
extend
(
extra_args
)
try
:
try
:
# os.execv(sys.executable, me)
# os.execv(sys.executable, me)
s
ubprocess
.
call
(
me
)
s
ys
.
exit
(
subprocess
.
call
(
me
)
)
except
OSError
as
e
:
except
OSError
as
e
:
_print
(
"fatal: unable to start
%
s"
%
repo_main
,
file
=
sys
.
stderr
)
_print
(
"fatal: unable to start
%
s"
%
repo_main
,
file
=
sys
.
stderr
)
_print
(
"fatal:
%
s"
%
e
,
file
=
sys
.
stderr
)
_print
(
"fatal:
%
s"
%
e
,
file
=
sys
.
stderr
)
...
...
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