Skip to content

Commit

Permalink
Handle lower case booleans
Browse files Browse the repository at this point in the history
  • Loading branch information
emperorcezar committed Nov 5, 2015
1 parent b7441c2 commit 6f945fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chipy_org/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
def env_var(key, default=None):
"""Retrieves env vars and makes Python boolean replacements"""
val = os.environ.get(key, default)
if val == 'True':
if val in ('True', 'true'):
val = True
elif val == 'False':
elif val in ('False', 'false'):
val = False
return val

Expand Down

0 comments on commit 6f945fb

Please sign in to comment.