Skip to content

Commit

Permalink
blueprints: get rather than [] THEME_FRONTPAGE
Browse files Browse the repository at this point in the history
  • Loading branch information
fenekku committed Feb 25, 2025
1 parent 17fbc88 commit f954547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invenio_theme/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f954547

Please sign in to comment.