From 9d4eec6431e4b854e624fd83cf62310e34895b5b Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 11 Jul 2021 16:06:59 +0200 Subject: [PATCH] Fix edge case where 'help' key doesn't exists yet there's a translation for it ... --- list_builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/list_builder.py b/list_builder.py index 6debc730..05380909 100755 --- a/list_builder.py +++ b/list_builder.py @@ -275,7 +275,7 @@ def include_translations_in_manifest(manifest): key = "%s_manifest_arguments_%s_help_%s" % (app_name, category, question["name"]) # don't overwrite already existing translation in manifests for now - if translations.get(key) and current_lang not in question.get("help", []): + if translations.get(key) and "help" in question and current_lang not in question.get("help", []): question["help"][current_lang] = translations[key] return manifest