Handles empty state values (null, "") in list based config items from being persisted

This commit is contained in:
afreeland
2024-11-18 19:38:43 -05:00
parent 345fd3e0ff
commit 972637feb1
2 changed files with 5 additions and 1 deletions

View File

@@ -728,6 +728,10 @@ method=auto
elif isinstance(value, (int, float)):
current_config[key] = value
elif isinstance(value, list):
# Lets boot any values in a list that are just empty strings
for val in value[:]:
if val == "" :
value.remove(val)
current_config[key] = value
elif isinstance(value, str):
if value.replace('.', '', 1).isdigit():