check if cache is valid

This commit is contained in:
Romain Bignon 2010-10-31 16:11:12 +01:00
commit e4339517df

View file

@ -80,7 +80,11 @@ class BoobankMuninPlugin(object):
except IOError:
return False
last = int(f.readline().strip())
try:
last = int(f.readline().strip())
except ValueError:
return False
if (last + self.cache_expire) < time.time():
return False