Fix incorrect use of subprocess.CalledProcessError (#45890)

(cherry picked from commit 24dd87bd0a)
pull/46656/head
Dag Wieers 6 years ago committed by Matt Clay
parent 2fbee1d183
commit 3dbb029f18

@ -14,7 +14,10 @@ def main():
stdout, stderr = sphinx.communicate()
if sphinx.returncode != 0:
raise subprocess.CalledProcessError(sphinx.returncode, cmd, output=stdout, stderr=stderr)
print("Command '%s' failed with status code: %d" % (' '.join(cmd), sphinx.returncode))
print(stdout)
print(stderr)
return
with open('docs/docsite/rst_warnings', 'r') as warnings_fd:
output = warnings_fd.read().strip()

Loading…
Cancel
Save