Skip to content

Commit

Permalink
HOTFIX: Flask templates always expects None for KeyError or AttrError
Browse files Browse the repository at this point in the history
  • Loading branch information
rochacbruno committed Mar 21, 2017
1 parent 0ea2664 commit a5a9bff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions HISTORY
Expand Up @@ -3,6 +3,11 @@ Changelog

These are all the changes in Dynaconf since the first public release.

0.4.4
-----

- HOTFIX: Flask templates always expect `None` if KeyError or Attribute Error

0.4.3
-----

Expand Down
5 changes: 1 addition & 4 deletions dynaconf/contrib/flask_dynaconf.py
Expand Up @@ -132,10 +132,7 @@ def __getitem__(self, key):
"""
First try to get value from dynaconf then from Flask
"""
try:
return self._settings[key]
except KeyError:
return Config.__getitem__(self, key)
return self.get(key)

def __getattr__(self, name):
"""
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -31,7 +31,7 @@ def parse_md_to_rst(file):

setup(
name='dynaconf',
version="0.4.3",
version="0.4.4",
url='https://github.com/rochacbruno/dynaconf',
license='MIT',
author="Bruno Rocha",
Expand Down

0 comments on commit a5a9bff

Please sign in to comment.