mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
fix for bad filesystems not working with utime
This commit is contained in:
parent
5d41329e34
commit
a3816b0e9e
1 changed files with 5 additions and 1 deletions
|
@ -1153,7 +1153,11 @@ your deck."""))
|
|||
'reps': deck._dailyStats.reps,
|
||||
})
|
||||
deck.close()
|
||||
os.utime(d, (mod, mod))
|
||||
try:
|
||||
os.utime(d, (mod, mod))
|
||||
except:
|
||||
# some misbehaving filesystems may fail here
|
||||
pass
|
||||
except Exception, e:
|
||||
if "File is in use" in unicode(e):
|
||||
continue
|
||||
|
|
Loading…
Reference in a new issue