mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
ea033b0157
commit
1f99160b3a
@ -457,7 +457,7 @@ def atomic_rename(oldpath, newpath):
|
||||
try:
|
||||
win32file.MoveFileEx(oldpath, newpath, win32file.MOVEFILE_REPLACE_EXISTING|win32file.MOVEFILE_WRITE_THROUGH)
|
||||
break
|
||||
except:
|
||||
except Exception:
|
||||
if i > 8:
|
||||
raise
|
||||
# Try the rename repeatedly in case something like a virus
|
||||
|
Loading…
x
Reference in New Issue
Block a user