diff --git a/scripts/generate_docs.py b/scripts/generate_docs.py index 3f28e1b75e..e25263d7d0 100644 --- a/scripts/generate_docs.py +++ b/scripts/generate_docs.py @@ -262,7 +262,7 @@ def generate_html(dstpath): if result.returncode != 0: print("sphinx-build returned non-zero error code.") print("--- output ---") - print(result.stderr.read().decode()) + print(result.stderr.decode()) raise Exception("Failed to generate html documentation.") """ @@ -277,7 +277,7 @@ def generate_pdf(dstpath): if result.returncode != 0: print("sphinx-build returned non-zero error code.") print("--- output ---") - print(result.stderr.read().decode()) + print(result.stderr.decode()) raise Exception("Failed to generate pdf documentation.") """