Fallback to simple file copy if rename failed
This commit is contained in:
parent
1beb4fc2cb
commit
561bd80aa3
2 changed files with 10 additions and 4 deletions
|
@ -175,7 +175,7 @@ class SiteStorage:
|
|||
err = None
|
||||
break
|
||||
except Exception, err:
|
||||
self.log.error("%s rename error: %s" % (inner_path_before, err))
|
||||
self.log.error("%s rename error: %s (retry #%s)" % (inner_path_before, err, retry))
|
||||
time.sleep(0.1 + retry)
|
||||
if err:
|
||||
raise err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue