From df37578eef4b39bc52ec51948ac678b8f69c90df Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 16 Mar 2021 02:46:47 +0100 Subject: [PATCH] Make sure 'ask' key exists --- list_builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/list_builder.py b/list_builder.py index 169d3a8..a8bd052 100755 --- a/list_builder.py +++ b/list_builder.py @@ -268,7 +268,7 @@ def include_translations_in_manifest(manifest): for question in questions: key = "%s_manifest_arguments_%s_%s" % (app_name, category, question["name"]) # don't overwrite already existing translation in manifests for now - if translations.get(key) and not current_lang not in question["ask"]: + if translations.get(key) and "ask" in question and not current_lang not in question["ask"]: #print("[ask]", current_lang, key) question["ask"][current_lang] = translations[key]