From e27a340c06938a96198eb31fee8c0bb8703b9393 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 16 Mar 2023 12:47:25 +0100 Subject: [PATCH] code cleaning --- flask_cas/routing.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/flask_cas/routing.py b/flask_cas/routing.py index 11b7f24d7..ec9eef639 100644 --- a/flask_cas/routing.py +++ b/flask_cas/routing.py @@ -64,7 +64,7 @@ def login(): else: flask.session.pop(cas_token_session_key, None) - current_app.logger.debug("Redirecting to: {0}".format(redirect_url)) + current_app.logger.debug("Redirecting to: {redirect_url}") return flask.redirect(redirect_url) @@ -100,11 +100,9 @@ def logout(): dest_url, ) else: - redirect_url = create_cas_logout_url( - current_app.config["CAS_SERVER"], current_app.config["CAS_LOGOUT_ROUTE"] - ) + redirect_url = create_cas_logout_url(current_app.config["CAS_SERVER"], None) - current_app.logger.debug("Redirecting to: {0}".format(redirect_url)) + current_app.logger.debug(f"Redirecting to: {redirect_url}") return flask.redirect(redirect_url)