Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 8527025

Browse files
authored
fix: Attempt to fix segments error (#1297)
1 parent bd7909a commit 8527025

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

services/comparison.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,8 @@ class Segment:
397397
@classmethod
398398
def segments(cls, file_comparison):
399399
lines = file_comparison.lines
400+
if lines is None:
401+
return []
400402

401403
# line numbers of interest (i.e. coverage changed or code changed)
402404
line_numbers = []

0 commit comments

Comments
 (0)