Skip to content

Commit

Permalink
Merge pull request #700 from prospector-dev/blender-line-none
Browse files Browse the repository at this point in the history
Fix blender when line is None
  • Loading branch information
sbrunner authored Nov 14, 2024
2 parents 20626c9 + 45015ad commit bd3a18c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prospector/blender.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def blend(messages: list[Message], blend_combos: Optional[list[list[tuple[str, s
msgs_grouped: dict[Path, dict[int, list[Message]]] = defaultdict(lambda: defaultdict(list))

for message in messages:
assert message.location.line is not None
msgs_grouped[message.location.path][message.location.line].append(
line = message.location.line
msgs_grouped[message.location.path][-1 if line is None else line].append(
message,
)

Expand Down

0 comments on commit bd3a18c

Please sign in to comment.