Skip to content

Commit

Permalink
Spot case where config is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
devcurmudgeon committed Mar 25, 2016
1 parent 72799e1 commit 31e02b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ybd/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,10 @@ def load_configs(config_files):
if os.path.exists(config_file):
with open(config_file) as f:
text = f.read()
if yaml.safe_load(text) == None:
return
log('SETUP', 'Setting config from %s:' % config_file)

for key, value in yaml.safe_load(text).items():
config[key] = value
msg = value if 'PASSWORD' not in key.upper() else '(hidden)'
Expand Down

0 comments on commit 31e02b2

Please sign in to comment.