diff --git a/bin/sequencer_report b/bin/sequencer_report index a9b4a79fb..117c00b72 100755 --- a/bin/sequencer_report +++ b/bin/sequencer_report @@ -137,15 +137,18 @@ class Sequence: buffer = [] steps = [] - file_lines = text.splitlines() - start_index = first_occurence(file_lines, lambda x: x[:2] == "1.") - sequence_lines = file_lines[start_index:] - - for line in reversed(sequence_lines): - buffer.insert(0, line) - if re.match(cls.STEP_PREFIX, line): - steps.insert(0, SequenceStep(buffer.copy())) - buffer.clear() + try: + file_lines = text.splitlines() + start_index = first_occurence(file_lines, lambda x: x[:2] == "1.") + sequence_lines = file_lines[start_index:] + + for line in reversed(sequence_lines): + buffer.insert(0, line) + if re.match(cls.STEP_PREFIX, line): + steps.insert(0, SequenceStep(buffer.copy())) + buffer.clear() + except: + pass return steps @staticmethod