Skip to content

Commit

Permalink
bubble up error for missing .readthedocs.yml if explicitly configured
Browse files Browse the repository at this point in the history
  • Loading branch information
ewdurbin committed Feb 7, 2023
1 parent e963fb0 commit 0082c27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion readthedocs/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1380,7 +1380,9 @@ def load(path, env_config, config_file=None):
if config_file is None or config_file == '':
filename = find_one(path, CONFIG_FILENAME_REGEX)
else:
filename = "/".join([path, config_file])
filename = os.path.join(path, config_file)
if not os.path.exists(filename):
raise ConfigError(f".readthedocs.yml not found at {config_file}", CONFIG_FILE_REQUIRED)

if not filename:
raise ConfigFileNotFound(path)
Expand Down

0 comments on commit 0082c27

Please sign in to comment.