mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
not foo -> foo is None
This commit is contained in:
parent
463d76f867
commit
fe4f8b4d5e
1 changed files with 1 additions and 1 deletions
|
@ -1551,7 +1551,7 @@ def ask_questions_and_parse_answers(
|
|||
question = question_class(raw_question, context=context, hooks=hooks)
|
||||
if question.type == "button":
|
||||
if (
|
||||
not question.enabled # type: ignore
|
||||
question.enabled is None # type: ignore
|
||||
or evaluate_simple_js_expression(question.enabled, context=context) # type: ignore
|
||||
):
|
||||
continue
|
||||
|
|
Loading…
Add table
Reference in a new issue