Skip to content

Commit 2a1e633

Browse files
committed
fix: em101 exception must not use a string literal, assign to variable first
1 parent 19ba8b1 commit 2a1e633

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

_2025/solutions/day07.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ def find_start(self, grid: list[list[str]]) -> tuple[int, int]:
4646
if cell == "S":
4747
return (x, y)
4848

49-
raise ValueError("No 'S' start cell found in grid!")
49+
err_msg = "No 'S' start cell found in grid!"
50+
raise ValueError(err_msg)
5051

5152
def part1(self, data: list[str]) -> int:
5253
"""Count how many splitters are activated along a single beam front.

0 commit comments

Comments
 (0)