Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion sphinx_autobuild/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import contextlib
import subprocess
import sys
import traceback
from collections.abc import Sequence
from pathlib import Path

Expand Down Expand Up @@ -45,7 +46,14 @@ def __call__(self, *, changed_paths: Sequence[Path]):
"Please fix the cause of the error above or press Ctrl+C to stop the "
"server."
)
raise
print(
"The server will continue serving the build folder, but the contents "
"being served are no longer in sync with the documentation sources. "
"Please fix the cause of the error above or press Ctrl+C to stop the "
"server."
)
traceback.print_exception(e)
return

if sphinx.version_info[:3] >= (7, 2, 3):
sphinx_build_args = ["-m", "sphinx", "build"] + self.sphinx_args
Expand Down