mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-06 05:53:00 +02:00
...
This commit is contained in:
parent
ea033b0157
commit
1f99160b3a
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue