diff --git a/test/sanity/code-smell/docs-build.py b/test/sanity/code-smell/docs-build.py index 15e882ceee..811631876e 100755 --- a/test/sanity/code-smell/docs-build.py +++ b/test/sanity/code-smell/docs-build.py @@ -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()