raise explicit exception if EOF found when looking for changelog sections
This commit is contained in:
parent
0724061f76
commit
8e086df084
1 changed files with 2 additions and 0 deletions
2
.github/update-release-branch.py
vendored
2
.github/update-release-branch.py
vendored
|
|
@ -188,6 +188,8 @@ def process_changelog_for_backports(source_branch_major_version, target_branch_m
|
|||
# until we find the first section, just duplicate all lines
|
||||
while True:
|
||||
line = f.readline()
|
||||
if not line:
|
||||
raise Exception('Could not find any change sections in CHANGELOG.md') # EOF
|
||||
|
||||
output += line
|
||||
if line.startswith('## '):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue