From 6af5c4a349f0340675b23217062c1fe9406f5d1f Mon Sep 17 00:00:00 2001 From: josef Date: Wed, 28 Oct 2015 12:52:14 +0100 Subject: adding diff counter for history in logreader --- monitor/josef_monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'monitor/josef_monitor.py') diff --git a/monitor/josef_monitor.py b/monitor/josef_monitor.py index 75553cd..a05a898 100755 --- a/monitor/josef_monitor.py +++ b/monitor/josef_monitor.py @@ -402,7 +402,7 @@ def main(args): log.save_state() # Create rollback point log.update_sth() - if old_sth["timestamp"] != log.sth["timestamp"]: + if old_sth and old_sth["timestamp"] != log.sth["timestamp"]: log.verify_progress(old_sth) # Does rollback on critical fail log.verify_consistency(old_sth) # Does rollback on critical fail log.incremental_build() # Does rollback on critical fail -- cgit v1.1