mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Fix incorrect use of subprocess.CalledProcessError (#45890)
This commit is contained in:
@@ -14,7 +14,10 @@ def main():
|
|||||||
stdout, stderr = sphinx.communicate()
|
stdout, stderr = sphinx.communicate()
|
||||||
|
|
||||||
if sphinx.returncode != 0:
|
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:
|
with open('docs/docsite/rst_warnings', 'r') as warnings_fd:
|
||||||
output = warnings_fd.read().strip()
|
output = warnings_fd.read().strip()
|
||||||
|
|||||||
Reference in New Issue
Block a user