From a71f20574748be3ede85fd001fd6b4771c361cf5 Mon Sep 17 00:00:00 2001 From: "Yakubov, Sergey" Date: Thu, 11 May 2023 20:39:48 -0400 Subject: [PATCH] fix check for app.authnz_manager --- lib/galaxy/webapps/base/webapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/webapps/base/webapp.py b/lib/galaxy/webapps/base/webapp.py index 034079b1b3d9..cef148e4fffb 100644 --- a/lib/galaxy/webapps/base/webapp.py +++ b/lib/galaxy/webapps/base/webapp.py @@ -323,7 +323,7 @@ def __init__( assert session_cookie self._ensure_valid_session(session_cookie) - if hasattr(self.app, "authnz_manager"): + if hasattr(self.app, "authnz_manager") and self.app.authnz_manager: self.app.authnz_manager.refresh_expiring_oidc_tokens(self) # type: ignore[attr-defined] if self.galaxy_session: