Skip to content

Commit e13371c

Browse files
Fix index bounds check in README entry processing
1 parent 19249f8 commit e13371c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/shared.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def update_readme(
220220
entry_start_index = lines.index(entry_start_line)
221221
entry_end_index = lines.index(entry_end_line)
222222
# Include any trailing empty/whitespace-only lines
223-
while not lines[entry_end_index + 1].strip():
223+
while entry_end_index + 1 < len(lines) and not lines[entry_end_index + 1].strip():
224224
entry_end_index += 1
225225
# Initalize variables of entry is not present
226226
else:

0 commit comments

Comments
 (0)