summaryrefslogtreecommitdiff
path: root/rystamps.py
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2011-05-01 00:24:16 (GMT)
committerAdrian C. (anrxc) <anrxc@sysphere.org>2011-05-01 00:25:04 (GMT)
commitf8c735d7255e6cbb31930c31dda7282883912908 (patch)
treed3f1792170df56754fad7a6c168b6b974ac958f6 /rystamps.py
parente8409298c4acad48a65d30ab3aa2ee09d39c5c88 (diff)
downloadrybackup-f8c735d7255e6cbb31930c31dda7282883912908.tar.xz
rystamps: missing snapshots shouldn't break the checks
Diffstat (limited to 'rystamps.py')
-rwxr-xr-xrystamps.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/rystamps.py b/rystamps.py
index 9cc8429..934f570 100755
--- a/rystamps.py
+++ b/rystamps.py
@@ -72,8 +72,10 @@ def main():
for s in servers.keys():
for ival in servers[s].keys():
- mtime = getmtime("%s/%s/%s.1" % (backups, s, ival))
-
+ try:
+ mtime = getmtime("%s/%s/%s.1" % (backups, s, ival))
+ except OSError:
+ continue
if timecomp(int(mtime), servers[s][ival]) == True:
alarms.append("%s %s.1\t last modified on: %s (UTC)" % (
s, ival, datetime.fromtimestamp(int(mtime))))