Commit 1f3745c7 authored by Nicolas Delaby's avatar Nicolas Delaby

Read returncode attribute to know if external process failed or not

parent 9a0c25c2
......@@ -164,7 +164,7 @@ class subprocesstransform:
process = Popen(argument_list, stdin=PIPE, stdout=PIPE,
stderr=PIPE, close_fds=True)
data_out, data_err = process.communicate(input=data)
if data_err:
if process.returncode:
raise OSError, data_err
cache.setData(data_out)
return cache
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment