From 179ea43cb88dc3c0a11a09487f8715e170484623 Mon Sep 17 00:00:00 2001 From: Aaron Kimbre Date: Mon, 14 Mar 2022 18:47:19 -0500 Subject: [PATCH] remove check, let flask handle the failure --- app/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/__init__.py b/app/__init__.py index 492c5c7..85dd958 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -193,9 +193,7 @@ def register_settings(app): 'APP_DATABASE_URI', app.config['APP_DATABASE_URI'] ) - if app.config['SECRET_KEY'] == "" or \ - app.config['APP_DATABASE_URI'] == "mysql+pymysql://:@:/": - raise("No database uri or secret Key") + # try to get overides, otherwise just use what we have already app.config['USER_ENABLE_REGISTER'] = os.getenv( 'USER_ENABLE_REGISTER',