From 37fd7af917d33d629ec2e0477cd4e27c2bc4ff20 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 13 Aug 2025 15:31:18 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- jupyterhub/handlers/base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jupyterhub/handlers/base.py b/jupyterhub/handlers/base.py index e02c0da6..cfa76d06 100644 --- a/jupyterhub/handlers/base.py +++ b/jupyterhub/handlers/base.py @@ -1330,7 +1330,10 @@ class BaseHandler(RequestHandler): if self.authenticator.refresh_pre_stop: auth_user = await self.refresh_auth(user, force=True) if auth_user is None: - if self.current_user.kind == "user" and self.current_user.name == user.name: + if ( + self.current_user.kind == "user" + and self.current_user.name == user.name + ): raise web.HTTPError( 403, "auth has expired for %s, login again", user.name )