Settings loader fix for not set range check entries

If we have a range or length check and the value is not set, skip, and do not convert either
Not set is None
This commit is contained in:
Clemens Schwaighofer
2025-07-14 17:00:25 +09:00
parent 0770ac0bb4
commit 648ab001b6
3 changed files with 7 additions and 0 deletions

View File

@@ -331,6 +331,9 @@ class SettingsLoader:
(__from, __to, __equal) = check
valid = True
for value_raw in convert_to_list(values):
# skip no tset values for range check
if not value_raw:
continue
value = 0
error_mark = ''
if check_type == 'length':

View File

@@ -9,6 +9,7 @@ other_list=a|b|c|d|
third_list=xy|ab|df|fg
str_length=foobar
int_range=20
int_range_not_set=
#
match_target=foo
match_target_list=foo,bar,baz

View File

@@ -63,6 +63,9 @@ def main():
"int_range": [
"range:2-50"
],
"int_range_not_set": [
"range:2-50"
],
"match_target": ["matching:foo"],
"match_target_list": ["split:,", "matching:foo|bar|baz",],
"match_source_a": ["in:match_target"],