Skip to content

Commit e07910e

Browse files
committed
Fix build error locally
1 parent 3e3f68d commit e07910e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

readthedocs/doc_builder/config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ def build_image(self):
118118
if self._project.container_image:
119119
# Allow us to override per-project still
120120
return self._project.container_image
121-
return self._yaml_config['build']['image']
121+
if 'build' in self._yaml_config:
122+
return self._yaml_config['build']['image']
123+
return None
122124

123125
# Not implemented until we figure out how to keep in sync with the webs.
124126
# Probably needs to be version-specific as well, not project.

0 commit comments

Comments
 (0)