Don't create file without encoding set

This commit is contained in:
Orsiris de Jong 2023-02-01 19:40:25 +01:00
parent ed1a4e716a
commit 7d216f948a

View file

@ -102,7 +102,7 @@ def create_scheduled_task(executable_path, interval_minutes: int):
)
# Create task file
try:
with open(TEMP_TASKFILE, "w") as file_handle:
with open(TEMP_TASKFILE, "w", encoding='unicode_escape') as file_handle:
file_handle.write(SCHEDULED_TASK_FILE_CONTENT)
except OSError as exc:
logger.error(