mirror of https://github.com/borgbackup/borg.git
SaveFile: unlink(tmppath): only ignore FileNotFoundError
This commit is contained in:
parent
dec671d8ff
commit
863ab66908
|
@ -137,7 +137,7 @@ class SaveFile:
|
||||||
from .. import platform
|
from .. import platform
|
||||||
try:
|
try:
|
||||||
os.unlink(self.tmppath)
|
os.unlink(self.tmppath)
|
||||||
except OSError:
|
except FileNotFoundError:
|
||||||
pass
|
pass
|
||||||
self.fd = platform.SyncFile(self.tmppath, self.binary)
|
self.fd = platform.SyncFile(self.tmppath, self.binary)
|
||||||
return self.fd
|
return self.fd
|
||||||
|
|
Loading…
Reference in New Issue