Skip to content

Commit fce855e

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mergin/client_push.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def push_project_async(mc, directory):
124124
changes = filter_changes(mc, project_info, changes)
125125
mp.log.debug("push changes:\n" + pprint.pformat(changes))
126126

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

129129
# If there are any versioned files (aka .gpkg) that are not updated through a diff,
130130
# we need to make a temporary copy somewhere to be sure that we are uploading full content.

0 commit comments

Comments
 (0)