Skip to content

Commit 8e086df

Browse files
committed
raise explicit exception if EOF found when looking for changelog sections
1 parent 0724061 commit 8e086df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/update-release-branch.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ def process_changelog_for_backports(source_branch_major_version, target_branch_m
188188
# until we find the first section, just duplicate all lines
189189
while True:
190190
line = f.readline()
191+
if not line:
192+
raise Exception('Could not find any change sections in CHANGELOG.md') # EOF
191193

192194
output += line
193195
if line.startswith('## '):

0 commit comments

Comments
 (0)