Fix snapshot restore does not work after export/import of project

This commit is contained in:
grossmj committed 2026-05-08 18:47:47 +08:00
1 parent 163d4e0534
commit b304511b5e
2 files changed
+13 -2

No files matched your search

+1 -1
View File
@@ -139,7 +139,7 @@ class Snapshot:
# delete the current project files
project_files_path = os.path.join(self._project.path, "project-files")
if os.path.exists(project_files_path):
await wait_run_in_executor(shutil.rmtree, project_files_path)
await wait_run_in_executor(shutil.rmtree, project_files_path, ignore_errors=True)
with open(self._path, "rb") as f:
project = await import_project(
self._project.controller,