Skip to content

Commit

Permalink
Better error handling in generate_docs.py (#1834)
Browse files Browse the repository at this point in the history
* Better error handling in generate_docs.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update generate_docs.py

* Update CHANGELOG.md

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
THEGAMECHANGER416 and pre-commit-ci[bot] authored Oct 17, 2023
1 parent 314e859 commit 6c69c82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [Significant Changes] Improving memory management part 1/3
- Removed strict version pins on `lmdbm`, `mpire`, `orjson`, and `pennylane`
- Changed license to Apache
- Improved error handling in generate_docs.py

### Added

Expand Down
5 changes: 4 additions & 1 deletion doc/generate_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ def run(clean_dir: bool = False) -> None:
else:
install_autoclass_doc_dependencies()
cmd = subprocess.Popen(["make", "html"])
cmd.communicate()
_, stderr = cmd.communicate()

if cmd.returncode != 0:
print(f"Error running 'make': {stderr}")

os.chdir(pwd)

0 comments on commit 6c69c82

Please sign in to comment.