g.locale might be None
This commit is contained in:
parent
5a38e9a412
commit
3a79805b6f
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ def _preemptive_data(key, path=None, base_url=None, data=None, additional_reques
|
|||
|
||||
d = dict(path=path,
|
||||
base_url=base_url,
|
||||
query_string="l10n={}".format(g.locale.language))
|
||||
query_string="l10n={}".format(g.locale.language if g.locale else "en"))
|
||||
|
||||
if key != "_default":
|
||||
d["plugin"] = key
|
||||
|
|
|
|||
Loading…
Reference in a new issue