This commit is contained in:
Miroslav Stampar
2016-06-24 13:31:19 +02:00
parent 0b31568306
commit 53fc9d6720
2 changed files with 7 additions and 3 deletions

View File

@@ -458,8 +458,12 @@ class Dump(object):
while True:
candidate = "%s.%d" % (dumpFileName, count)
if not checkFile(candidate, False):
shutil.copyfile(dumpFileName, candidate)
break
try:
shutil.copyfile(dumpFileName, candidate)
except IOError:
pass
finally:
break
else:
count += 1