WebHost: Handle blank values for OptionCounters #5517

This commit is contained in:
Duck
2025-10-06 04:38:38 +02:00
committed by GitHub
parent 8dc9719b99
commit 5c7a84748b
+1 -1
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]