Skip to content
This repository has been archived by the owner on Feb 20, 2019. It is now read-only.

Commit

Permalink
fix error in secret load
Browse files Browse the repository at this point in the history
  • Loading branch information
shads2 committed Dec 30, 2017
1 parent bbfbd30 commit ebe8279
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ def get_signal():

if __name__ == "__main__":
# Load settings and create the CONFIG object
SECRETS = json.load(open('secrets.json'))
SECRETS = {}
if os.path.isfile('secrets.json'):
SECRETS = json.load(open('secrets.json'))
CONFIG = json.load(open('default-config.json'))

CONFIG.update(SECRETS)
Expand Down

0 comments on commit ebe8279

Please sign in to comment.