We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ad8efa commit 838f28dCopy full SHA for 838f28d
1 file changed
app/task/MaaEnd/ScriptConfig.py
@@ -23,7 +23,6 @@
23
import shutil
24
import asyncio
25
from pathlib import Path
26
-from copy import deepcopy
27
28
from app.core import Config
29
from app.models.task import TaskExecuteBase, ScriptItem
@@ -142,7 +141,7 @@ async def final_task(self):
142
141
143
shutil.rmtree(self.config_file_path, ignore_errors=True)
144
self.config_file_path.mkdir(parents=True, exist_ok=True)
145
- shutil.copytree(self.maaend_set_path, self.config_file_path)
+ shutil.copytree(self.maaend_set_path, self.config_file_path, dirs_exist_ok=True)
146
147
async def on_crash(self, e: Exception):
148
self.cur_user_item.status = "异常"
0 commit comments