Skip to content

Commit

Permalink
Merge pull request #23 from ramanathanlab/develop
Browse files Browse the repository at this point in the history
Bug fix: Timer parsing blank file
  • Loading branch information
KPHippe authored May 31, 2024
2 parents 76fabf3 + 987b05f commit a1d94e6
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 a1d94e6

Please sign in to comment.