From 9f5c58fe9af3a3485d067ab3912decb70ed83a1d Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Fri, 15 Sep 2023 16:33:14 -0400 Subject: [PATCH] Fix migration on Windows --- app/migrations/0038_remove_task_console_output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/migrations/0038_remove_task_console_output.py b/app/migrations/0038_remove_task_console_output.py index 88fc024f..38a54625 100644 --- a/app/migrations/0038_remove_task_console_output.py +++ b/app/migrations/0038_remove_task_console_output.py @@ -21,7 +21,7 @@ def dump_console_outputs(apps, schema_editor): os.makedirs(dp, exist_ok=True) outfile = os.path.join(dp, "console_output.txt") - with open(outfile, "w") as f: + with open(outfile, "w", encoding="utf-8") as f: f.write(t.console_output) print("Wrote console output for %s to %s" % (t, outfile)) else: