Skip to content

Commit

Permalink
fix check for app.authnz_manager
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyYakubov committed May 12, 2023
1 parent edcf7ac commit a71f205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/webapps/base/webapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a71f205

Please sign in to comment.