remove check, let flask handle the failure

This commit is contained in:
Aaron Kimbre 2022-03-14 18:47:19 -05:00
parent 1566df65cb
commit 179ea43cb8

View File

@ -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://<username>:<password>@<host>:<port>/<database>":
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',