make app silently fail when config is missing

since default was already loaded
This commit is contained in:
Lili (Tlapka) 2022-11-07 16:29:02 +01:00
parent e3cc9286af
commit 2c3109901c
1 changed files with 2 additions and 2 deletions

View File

@ -21,8 +21,8 @@ def create_app(test_config=None):
) )
app.config.from_object('tlapbot.default_config') app.config.from_object('tlapbot.default_config')
app.config.from_object('tlapbot.default_redeems') app.config.from_object('tlapbot.default_redeems')
app.config.from_pyfile('config.py') app.config.from_pyfile('config.py', silent=True)
app.config.from_pyfile('redeems.py') app.config.from_pyfile('redeems.py', silent=True)
# prepare webhooks and redeem dashboard blueprints # prepare webhooks and redeem dashboard blueprints
from . import owncast_webhooks from . import owncast_webhooks