Skip to content

Commit ed5a89b

Browse files
committed
add options to TemporaryDirectory
1 parent fce855e commit ed5a89b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mergin/client_pull.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def download_project_async(mc, project_path, directory, project_version=None):
146146
mp.log.info("--- version: " + mc.user_agent_info())
147147
mp.log.info(f"--- start download {project_path}")
148148

149-
tmp_dir = tempfile.TemporaryDirectory(prefix="python-api-client-")
149+
tmp_dir = tempfile.TemporaryDirectory(prefix="python-api-client-", ignore_cleanup_errors=True, delete=True)
150150

151151
try:
152152
# check whether we download the latest version or not

0 commit comments

Comments
 (0)