Merge pull request #1630 from castrapel/validate_config_fix

Validate config - fix for issue#1629
This commit is contained in:
Curtis 2018-08-28 10:08:14 -07:00 committed by GitHub
commit b3c4324728
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ def validate_conf(app, required_vars):
:param required_vars: list
"""
for var in required_vars:
if not app.config.get(var):
if var not in app.config:
raise InvalidConfiguration("Required variable '{var}' is not set in Lemur's conf.".format(var=var))