Skip to content

Commit e0b2afb

Browse files
authored
FIX: do not update conf.py path if not available` (#548)
1 parent 0f451d7 commit e0b2afb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compwa_policy/check_dev_files/readthedocs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ def _set_sphinx_configuration(config: ReadTheDocs) -> None:
6262
if "sphinx" not in config.document:
6363
config.document["sphinx"] = {}
6464
sphinx = config.document["sphinx"]
65-
if "configuration" not in sphinx:
66-
conf_path = __get_sphinx_config_path()
65+
conf_path = __get_sphinx_config_path()
66+
if "configuration" not in sphinx and conf_path:
6767
sphinx["configuration"] = str(conf_path)
6868
msg = f"Set sphinx.configuration to {conf_path}"
6969
config.changelog.append(msg)

0 commit comments

Comments
 (0)