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):