Skip to content

Commit 48de597

Browse files
committed
Build: check if the YAML file exists before trying to open it
1 parent 0f89186 commit 48de597

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

readthedocs/doc_builder/director.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,10 @@ def store_readthedocs_build_yaml(self):
638638
"readthedocs-build.yaml",
639639
)
640640

641+
if not os.path.exists(yaml_path):
642+
log.debug("Build output YAML file (readtehdocs-build.yaml) does not exist.")
643+
return
644+
641645
try:
642646
with open(yaml_path, "r") as f:
643647
data = yaml.safe_load(f)

0 commit comments

Comments
 (0)