diff --git a/pdfwf/timer.py b/pdfwf/timer.py index c7b33fe..cf498c7 100644 --- a/pdfwf/timer.py +++ b/pdfwf/timer.py @@ -148,6 +148,9 @@ def parse_logs(self, log_path: PathLike) -> list[TimeStats]: # Extracted items from all print statements for line in lines: match = re.findall(regex_pattern, line) + # If the line doesn't contain the timer information, skip it + if not match: + continue time_stats.append( TimeStats( tags=match[1].split(),