Cleanup after cherry-picking...

This commit is contained in:
Raffson
2023-05-14 21:34:28 +02:00
parent f9e9c2793a
commit 785beffee0
8 changed files with 10 additions and 6 deletions

View File

@@ -41,7 +41,7 @@ class FactionLoader:
try:
with f.open("r", encoding="utf-8") as fdata:
data = json.load(fdata)
factions[data["name"]] = Faction.from_json(data)
factions[data["name"]] = Faction.from_dict(data)
logging.info("Loaded faction : " + str(f))
except Exception:
logging.exception(f"Unable to load faction : {f}")