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
|
||||
try:
|
||||
os.unlink(self.tmppath)
|
||||
except OSError:
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
self.fd = platform.SyncFile(self.tmppath, self.binary)
|
||||
return self.fd
|
||||
|
|
Loading…
Reference in New Issue