Skip to content

Commit 1c81cfb

Browse files
Fix name defaults in config parsing
1 parent e1e67de commit 1c81cfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rlbot/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def load_player_config(
186186

187187
return flat.PlayerConfiguration(
188188
type,
189-
name_override or settings.get("name"),
189+
name_override or settings.get("name", ""),
190190
team,
191191
str(root_dir),
192192
run_command,
@@ -216,7 +216,7 @@ def load_script_config(path: Path | str) -> flat.ScriptConfiguration:
216216
run_command = settings["run_command_linux"]
217217

218218
return flat.ScriptConfiguration(
219-
settings.get("name", "Unnamed"),
219+
settings.get("name", ""),
220220
str(root_dir),
221221
run_command,
222222
0,

0 commit comments

Comments
 (0)