X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=monitor%2Fcommon.py;h=05a4ec261ed10897f27007e7f5ef707145817c72;hb=36b3183046a4c77cda147b440c6e85d1a036f239;hp=c3ece6fcc8de89df442d68285b41477add0f06be;hpb=125c27b9121122663bada7e36eb2a00c95362d18;p=monitor.git diff --git a/monitor/common.py b/monitor/common.py index c3ece6f..05a4ec2 100644 --- a/monitor/common.py +++ b/monitor/common.py @@ -240,6 +240,9 @@ def changed_lessthan(last_changed, days): return False def changed_greaterthan(last_changed, days): + if last_changed is None: + return False + if datetime.now() - last_changed > timedelta(days): #print "last changed more than %s" % timedelta(days) return True