Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
c0bdefd2
Commit
c0bdefd2
authored
Sep 15, 2016
by
Mikaël Salson
Committed by
Mathieu Giraud
Sep 23, 2016
Browse files
pear.py: raise error when exit code ≠ 0
parent
04883a8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/pear.py
View file @
c0bdefd2
...
...
@@ -25,7 +25,7 @@ f_r2 = args.file_R2
f_out
=
args
.
output_file
subprocess
.
call
([
"pear"
,
exit_code
=
subprocess
.
call
([
"pear"
,
"-f"
,
f_r1
,
"-r"
,
f_r2
,
"-o"
,
f_out
,
...
...
@@ -33,6 +33,8 @@ subprocess.call(["pear",
+
shlex
.
split
(
args
.
pear_options
)
)
if
exit_code
>
0
:
raise
EnvironmentError
"Pear failed"
try
:
with
gzip
.
open
(
f_out
,
'w'
)
as
outFile
:
...
...
Write
Preview
Supports
Markdown
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