We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d991b15 commit 79c5498Copy full SHA for 79c5498
src/utils/utils.py
@@ -115,6 +115,8 @@ def write_to_file(
115
output_file: Path | str,
116
data: dict[str, EuroPythonSession] | dict[str, EuroPythonSpeaker],
117
) -> None:
118
+ Path(output_file).parent.absolute().mkdir(parents=True, exist_ok=True)
119
+
120
with open(output_file, "w") as fd:
121
json.dump(
122
{k: json.loads(v.model_dump_json()) for k, v in data.items()},
0 commit comments