aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/utils.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/utils.py b/docs/utils.py
index 76b3e098..9116c130 100644
--- a/docs/utils.py
+++ b/docs/utils.py
@@ -105,7 +105,10 @@ def __get_included() -> set[str]:
"""Get a list of files that should be included in the final build."""
def get_all_from_module(module_name: str) -> set[str]:
- module = importlib.import_module(module_name)
+ try:
+ module = importlib.import_module(module_name)
+ except ModuleNotFoundError:
+ return {}
_modules = {module.__name__ + ".rst"}
if hasattr(module, "__all__"):