Skip to content

Commit

Permalink
If blank checkpoint files are present, the timer will try to parse No…
Browse files Browse the repository at this point in the history
…ne matches
  • Loading branch information
KPHippe committed May 29, 2024
1 parent 63532a9 commit 987b05f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pdfwf/timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 987b05f

Please sign in to comment.