WebHost: Handle blank values for OptionCounters #5517

This commit is contained in:
Duck
2025-10-05 20:38:38 -06:00
committed by GitHub
parent 8dc9719b99
commit 5c7a84748b

View File

@@ -231,7 +231,7 @@ def generate_yaml(game: str):
if key_parts[-1] == "qty":
if key_parts[0] not in options:
options[key_parts[0]] = {}
if val != "0":
if val and val != "0":
options[key_parts[0]][key_parts[1]] = int(val)
del options[key]