parent
db805043f2
commit
cf1a1b31e2
@ -43,7 +43,10 @@ class LocalStatusRepository(BaseRepository):
|
|||||||
file = open(filename + ".tmp", "wb")
|
file = open(filename + ".tmp", "wb")
|
||||||
file.write(offlineimap.folder.LocalStatus.magicline + '\n')
|
file.write(offlineimap.folder.LocalStatus.magicline + '\n')
|
||||||
file.close()
|
file.close()
|
||||||
os.unlink(filename)
|
try:
|
||||||
|
os.unlink(filename)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
os.rename(filename + ".tmp", filename)
|
os.rename(filename + ".tmp", filename)
|
||||||
|
|
||||||
# Invalidate the cache.
|
# Invalidate the cache.
|
||||||
|
Loading…
Reference in New Issue
Block a user