Fix issue around reset

This commit is contained in:
Marek Wolan
2024-02-29 13:22:05 +00:00
parent f7c535b557
commit 2f3e40fb6b
2 changed files with 4 additions and 3 deletions

View File

@@ -417,7 +417,7 @@ class PrimaiteGame:
agent_settings=agent_settings,
)
else:
msg(f"Configuration error: {agent_type} is not a valid agent type.")
msg = f"Configuration error: {agent_type} is not a valid agent type."
_LOGGER.error(msg)
raise ValueError(msg)
game.agents[agent_cfg["ref"]] = new_agent