From f0a112456bc91d449b187d6a85e743dd9801f7cc Mon Sep 17 00:00:00 2001 From: Mike Benowitz Date: Fri, 5 Jul 2019 15:19:01 -0400 Subject: [PATCH] Only use config.yaml in local development --- api/app.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/app.py b/api/app.py index f647790..7012aaf 100644 --- a/api/app.py +++ b/api/app.py @@ -15,7 +15,10 @@ def loadConfig(): for key, value in sectionDict.items(): os.environ[key] = value -loadConfig() +try: + loadConfig() +except FileNotFoundError: + pass application = Flask(__name__) application.register_blueprint(base.bp)