mirror of
https://github.com/netinvent/npbackup.git
synced 2024-09-20 14:56:14 +08:00
Don't create file without encoding set
This commit is contained in:
parent
ed1a4e716a
commit
7d216f948a
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue