From cc54251368708deeeacc6e0a06389226557ebf2f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 4 Oct 2019 18:51:46 +0530 Subject: [PATCH] Increase rename retries since we could have file sync programs in the mix as well --- src/calibre/gui2/viewer/convert_book.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/viewer/convert_book.py b/src/calibre/gui2/viewer/convert_book.py index 85d756ff27..7907fefd9d 100644 --- a/src/calibre/gui2/viewer/convert_book.py +++ b/src/calibre/gui2/viewer/convert_book.py @@ -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)