mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 11:51:14 +02:00
Don't use output argument for CalledProcessError (Python 2.7 only)
Also add _Print statement so that stdout is printed. BUG=chromium-os:9257 TEST=Run cros_mark_as_stable.py clean / commit Change-Id: I9a01d6369d4b14ca0be812b8b1509c8375b1d575 Review URL: http://codereview.chromium.org/5063004
This commit is contained in:
parent
8ce0100b03
commit
d4993a7311
@ -248,7 +248,8 @@ def _SimpleRunCommand(command):
|
||||
stdout = proc_handle.communicate()[0]
|
||||
retcode = proc_handle.wait()
|
||||
if retcode != 0:
|
||||
raise subprocess.CalledProcessError(retcode, command, output=stdout)
|
||||
_Print(stdout)
|
||||
raise subprocess.CalledProcessError(retcode, command)
|
||||
return stdout
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user