From 7c7734c99628f7f2da2b897649e4d83a13f22eaa Mon Sep 17 00:00:00 2001 From: Ruben van Staveren Date: Thu, 10 Mar 2022 14:32:36 +0100 Subject: [PATCH] Not exactly using it. remove for now --- jail2ban/__init__.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/jail2ban/__init__.py b/jail2ban/__init__.py index 9d43d7f..a4b14e9 100644 --- a/jail2ban/__init__.py +++ b/jail2ban/__init__.py @@ -26,15 +26,11 @@ def untaint(pattern, string): raise ValueError(f'"{string}" is tainted') -def create_app(config=None): +def create_app(): app = Flask(__name__, instance_relative_config=True) - if config is None: - # load the instance config, if it exists, when not testing - app.config.from_pyfile('config.py', silent=True) - else: - # load the test config if passed in - app.config.from_pyfile(config, silent=True) + # load the instance config, if it exists, when not testing + app.config.from_pyfile('config.py', silent=True) @auth.verify_password def verify_password(username, password):