diff --git a/invenio_theme/views.py b/invenio_theme/views.py index ee7f64b..9c15d79 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)