- bs_val = extract_from('/tmp/bm.log', 'Current boot state:').split()[3]
- ex_val = extract_from('/tmp/bm.log', 'Exception')
- fs_val = extract_from('/tmp/bm.log', 'mke2fs')
- bm_val = check_running("BootManager.py")
+ bs_val = extract_from('/tmp/bm.log', 'Current boot state:')
+ if len(bs_val) > 0: bs_val = bs_val.split()[-1]
+ ex_val = extract_from('/tmp/bm.log', 'Exception')
+ fs_val = extract_from('/tmp/bm.log', 'mke2fs')
+ bm_val = check_running("BootManager.py")