Fixed wrongly positioned parenthesis
Caused an internal server error if / was requested with a different default language than english that was not available in the i18n bundles.
This commit is contained in:
parent
f79d496c7c
commit
b9372d7300
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ _valid_div_re = re.compile("[a-zA-Z_-]+")
|
|||
|
||||
@app.route("/")
|
||||
@util.flask.preemptively_cached(cache=preemptiveCache,
|
||||
data=lambda: dict(path=request.path, base_url=request.url_root, query_string="l10n={}".format(g.locale.language)) if g.locale else "en",
|
||||
data=lambda: dict(path=request.path, base_url=request.url_root, query_string="l10n={}".format(g.locale.language) if g.locale else "en"),
|
||||
unless=lambda: request.url_root in settings().get(["server", "preemptiveCache", "exceptions"]))
|
||||
@util.flask.conditional(lambda: _check_etag_and_lastmodified_for_index(), NOT_MODIFIED)
|
||||
@util.flask.cached(timeout=-1,
|
||||
|
|
|
|||
Loading…
Reference in a new issue