From fe4f8b4d5e00414a2ed7d24fe35ac7c65dfdf33c Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 4 Oct 2022 22:27:23 +0200 Subject: [PATCH] not foo -> foo is None --- src/utils/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/config.py b/src/utils/config.py index 9b35d7d3b..b55478007 100644 --- a/src/utils/config.py +++ b/src/utils/config.py @@ -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