diff --git a/uffd/__init__.py b/uffd/__init__.py index cc7926a7b8b43e31e9e48071318088973c984b20..d055976a05120c2526b7cf8d59818b10a69facdd 100644 --- a/uffd/__init__.py +++ b/uffd/__init__.py @@ -50,11 +50,11 @@ def create_app(test_config=None): # pylint: disable=too-many-locals app.register_blueprint(i) @app.route("/") - def index(): #pylint: disable=unused-variable + def index(): #pylint: disable=unused-variable return redirect(url_for('selfservice.index')) @app.teardown_request - def close_connection(e): + def close_connection(exception): #pylint: disable=unused-variable,unused-argument if hasattr(request, "ldap_connection"): request.ldap_connection.unbind()