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()
|
||||||
|
try:
|
||||||
os.unlink(filename)
|
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