Skip to content

Commit d42a564

Browse files
committed
Add PermissionError exception to retry_call
1 parent eef8501 commit d42a564

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zarr/storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ def __setitem__(self, key, value):
863863
# move temporary file into place;
864864
# make several attempts at writing the temporary file to get past
865865
# potential antivirus file locking issues
866-
retry_call(os.replace, (temp_path, file_path))
866+
retry_call(os.replace, (temp_path, file_path), exceptions=(PermissionError,))
867867

868868
finally:
869869
# clean up if temp file still exists for whatever reason

0 commit comments

Comments
 (0)