fix: handle empty/invalid athlete.json in merge, API read, and writer encoding
This commit is contained in:
@@ -382,7 +382,9 @@ def write_athlete_json(summaries: list[dict], output_dir: Path, athlete_config:
|
||||
**athlete_config,
|
||||
}
|
||||
(output_dir / "athlete.json").write_text(
|
||||
json.dumps(athlete, indent=2, ensure_ascii=False)
|
||||
json.dumps(athlete, indent=2, ensure_ascii=False),
|
||||
encoding="utf-8",
|
||||
errors="replace",
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user