Skip to content

Commit dca5004

Browse files
committed
avoid wrting empty keys to the configuration.yaml file
1 parent 1d71b07 commit dca5004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/navigate/controller/configurator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def write_func(prefix, config_dict, f):
245245
for list_item in config_dict[k]:
246246
f.write(f"{prefix}{list_prefix}-\n")
247247
write_func(prefix + list_prefix * 2, list_item, f)
248-
else:
248+
elif k != "":
249249
f.write(f"{prefix}{k}: {config_dict[k]}\n")
250250

251251
with open(filename, "w") as f:

0 commit comments

Comments
 (0)