Bug fix for loading boolean settings (#10826)
- Do not just cast to bool - The string "False" casts to True in this case - Use the function that supports strings
This commit is contained in:
parent
0790dfff5b
commit
8cb808f613
|
|
@ -223,6 +223,11 @@ def do_typecast(value, type, var_name=None):
|
|||
elif type is dict:
|
||||
value = to_dict(value)
|
||||
|
||||
# Special handling for boolean typecasting
|
||||
elif type is bool:
|
||||
val = is_true(value)
|
||||
return val
|
||||
|
||||
elif type is not None:
|
||||
# Try to typecast the value
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in New Issue