mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix incorrect use of subprocess.CalledProcessError (#45890)
This commit is contained in:
parent
693f3219d4
commit
24dd87bd0a
1 changed files with 4 additions and 1 deletions
|
@ -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…
Reference in a new issue