[fix] Unbound var in config panel

This commit is contained in:
ljf 2021-09-05 16:19:35 +02:00
parent 0a1e64d88f
commit 3b0bf74274

View file

@ -599,7 +599,7 @@ class BooleanQuestion(Question):
raise YunohostValidationError( raise YunohostValidationError(
"app_argument_choice_invalid", "app_argument_choice_invalid",
name=self.name, # FIXME ... name=option.get("name", ""),
value=value, value=value,
choices="yes, no, y, n, 1, 0", choices="yes, no, y, n, 1, 0",
) )
@ -619,7 +619,7 @@ class BooleanQuestion(Question):
return None return None
raise YunohostValidationError( raise YunohostValidationError(
"app_argument_choice_invalid", "app_argument_choice_invalid",
name=self.name, # FIXME.... name=option.get("name", ""),
value=value, value=value,
choices="yes, no, y, n, 1, 0", choices="yes, no, y, n, 1, 0",
) )