Skip to content

Commit

Permalink
Fixes #98. Linting. Fixing regression in logic for evaluating possibl…
Browse files Browse the repository at this point in the history
…e options
  • Loading branch information
markfinal committed Jul 15, 2023
1 parent 9520160 commit 218d54c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cruiz/recipe/recipewidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,8 @@ def _get_options_from_recipe(
# while option_definitions are all strings, so in order to compare
# let's do everything as strings
default_value = str(default_options[key])
if isinstance(value, list) and default_value not in value:
if isinstance(value[0], bool):
if isinstance(value, list):
if default_value not in value and isinstance(value[0], bool):
default_value = _strtobool(default_value)
assert default_value in value, (
f"Cannot find default value '{default_value}' in possible "
Expand Down

0 comments on commit 218d54c

Please sign in to comment.