Compare commits

..

3 Commits

Author SHA1 Message Date
Dan Albert
a0e5a707fb Merge pull request #1053 from Khopa/develop_2_5_x
Release 2.5.1.
2021-05-02 13:28:45 -07:00
Khopa
f0558c4c1e Fixed ai_flight_planner for maps lacking frontlines (such as battle of britain on The Channel map) 2021-04-23 23:45:14 +02:00
C. Perreau
de2e5f861b Merge pull request #1007 from Khopa/develop_2_5_x
Release 2.5.0
2021-04-22 00:08:42 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -1521,7 +1521,7 @@ def unit_get_expanded_info(country_name: str, unit_type, request_type: str) -> s
default_value = None
faction_value = None
with UNITINFOTEXT_PATH.open("r", encoding="utf-8") as fdata:
data = json.load(fdata)
data = json.load(fdata, encoding="utf-8")
type_exists = data.get(original_name)
if type_exists is not None:
for faction in type_exists:

View File

@@ -31,7 +31,7 @@ class FactionLoader:
for f in files:
try:
with f.open("r", encoding="utf-8") as fdata:
data = json.load(fdata)
data = json.load(fdata, encoding="utf-8")
factions[data["name"]] = Faction.from_json(data)
logging.info("Loaded faction : " + str(f))
except Exception: