Properly build ValidationError message for custom_dir.

Fixes #1849
This commit is contained in:
Waylan Limberg
2019-09-02 15:39:48 -04:00
parent f200a60060
commit efdb5cf7f0
2 changed files with 3 additions and 2 deletions

View File

@@ -56,7 +56,8 @@ your global navigation uses more than one level, things will likely be broken.
### Other Changes and Additions to Version 1.1
* Bugfix: Exclude Markdown files and READMEs from theme. (#1766).
* Bugfix: Properly build `ValidationError` message for `custom_dir` (#1849).
* Bugfix: Exclude Markdown files and READMEs from theme (#1766).
* Bugfix: Account for encoded URLs (#1670).
* Bugfix: Ensure theme files do not override `docs_dir` files (#1671).
* Bugfix: Do not normalize URL fragments (#1655).

View File

@@ -456,7 +456,7 @@ class Theme(BaseConfigOption):
if 'custom_dir' in theme_config and not os.path.isdir(theme_config['custom_dir']):
raise ValidationError("The path set in {name}.custom_dir ('{path}') does not exist.".
format(path=theme_config['custom_dir'], name=self.name))
format(path=theme_config['custom_dir'], name=key_name))
config[key_name] = theme.Theme(**theme_config)