diff --git a/frontpage/routes.py b/frontpage/routes.py index b9efc27..02da5f4 100644 --- a/frontpage/routes.py +++ b/frontpage/routes.py @@ -29,7 +29,7 @@ def register(auth: OIDCAuthentication, auth_provider: str) -> Blueprint: Renders the home route. """ user_session = UserSession(flask.session) - groups: List[str] = user_session.userinfo["groups"] + groups: List[str] = user_session.userinfo.get("groups") or [] config: Config = current_config() name = config.core.name