From f9545470ee91f04df356b22b88582cbfb685f751 Mon Sep 17 00:00:00 2001 From: Guillaume Viger Date: Tue, 25 Feb 2025 09:51:38 -0500 Subject: [PATCH] blueprints: get rather than [] THEME_FRONTPAGE --- invenio_theme/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invenio_theme/views.py b/invenio_theme/views.py index ee7f64bc..9c15d799 100644 --- a/invenio_theme/views.py +++ b/invenio_theme/views.py @@ -21,7 +21,7 @@ def create_blueprint(app): static_folder="static", ) - if app.config["THEME_FRONTPAGE"]: + if app.config.get("THEME_FRONTPAGE"): blueprint.add_url_rule("/", "index", view_func=index) app.register_error_handler(401, unauthorized)