diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2011-05-01 02:24:16 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2011-05-01 02:25:04 +0200 |
commit | f8c735d7255e6cbb31930c31dda7282883912908 (patch) | |
tree | d3f1792170df56754fad7a6c168b6b974ac958f6 /rystamps.py | |
parent | e8409298c4acad48a65d30ab3aa2ee09d39c5c88 (diff) | |
download | rybackup-f8c735d7255e6cbb31930c31dda7282883912908.tar.xz |
rystamps: missing snapshots shouldn't break the checks
Diffstat (limited to 'rystamps.py')
-rwxr-xr-x | rystamps.py | 6 |
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)))) |