Revert "Don't create file without encoding set"

This reverts commit 7d216f948a.
This commit is contained in:
Orsiris de Jong 2023-02-02 10:48:18 +01:00
parent 3d12b669e1
commit fa28343084

View file

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