Increase rename retries since we could have file sync programs in the mix as well

This commit is contained in:
Kovid Goyal 2019-10-04 18:51:46 +05:30
parent f0b3091a18
commit cc54251368
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -60,7 +60,7 @@ def robust_rmtree(x):
def robust_rename(a, b):
retries = 10 if iswindows else 1 # retry on windows to get around the idiotic mandatory file locking
retries = 20 if iswindows else 1 # retry on windows to get around the idiotic mandatory file locking
for i in range(retries):
try:
os.rename(a, b)