From 2c3109901c5d09dd4af7eb401f9a40e63a3f0c16 Mon Sep 17 00:00:00 2001 From: Lili Date: Mon, 7 Nov 2022 16:29:02 +0100 Subject: [PATCH] make app silently fail when config is missing since default was already loaded --- tlapbot/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tlapbot/__init__.py b/tlapbot/__init__.py index c5a9368..96b3b5f 100644 --- a/tlapbot/__init__.py +++ b/tlapbot/__init__.py @@ -21,8 +21,8 @@ def create_app(test_config=None): ) app.config.from_object('tlapbot.default_config') app.config.from_object('tlapbot.default_redeems') - app.config.from_pyfile('config.py') - app.config.from_pyfile('redeems.py') + app.config.from_pyfile('config.py', silent=True) + app.config.from_pyfile('redeems.py', silent=True) # prepare webhooks and redeem dashboard blueprints from . import owncast_webhooks