fix for bad filesystems not working with utime

This commit is contained in:
Damien Elmes 2010-11-25 07:18:41 +09:00
parent 5d41329e34
commit a3816b0e9e

View file

@ -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