Skip to content

Commit e76052f

Browse files
committed
Don't swallow exceptions in post_build
1 parent b0ec506 commit e76052f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ def skip(*args) -> bool:
130130
def post_build(_: Sphinx, exception: Exception) -> None:
131131
"""Clean up and process files after the build has finished."""
132132
if exception:
133-
# Don't accidentally supress exceptions
134-
raise exception from None
133+
# Don't accidentally suppress exceptions
134+
raise exception
135135

136136
build_folder = PROJECT_ROOT / "docs" / "build"
137137
main_build = build_folder / "main"

0 commit comments

Comments
 (0)