Skip to content

Commit

Permalink
selected_number was unbound in some scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
jackbdoughty committed Jan 28, 2025
1 parent a884209 commit 1d52e2f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/genie_python/genie_script_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,7 @@ def check_script(
error_line = re.search(r"W:\s+(\d+):", warning)
if error_line:
selected_number = error_line.group(1)

error_line_numbers.append(int(selected_number))
error_line_numbers.append(int(selected_number))

lines_containing_errors = []
with open(script_name) as f:
Expand Down

0 comments on commit 1d52e2f

Please sign in to comment.