diff --git a/confuse.py b/confuse.py index d15a7a7..18b18f0 100644 --- a/confuse.py +++ b/confuse.py @@ -1131,7 +1131,7 @@ def value(self, view, template=None): except NotFoundError: pass - # get default value, raise if required + # Get default value, or raise if required. return self.get_default_value(view.name) def get_default_value(self, key_name='default'): diff --git a/docs/index.rst b/docs/index.rst index 9070785..7020708 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -376,6 +376,7 @@ v1.2.0 - `float` values (like ``4.2``) can now be used in templates (just like ``42`` works as an `int` template). +- The `Filename` and `Path` templates now correctly accept default values. v1.1.0 ''''''