Skip to content

Commit

Permalink
CI: fix build_change_log.py: catch error when searching for "Detail:"
Browse files Browse the repository at this point in the history
  • Loading branch information
drmingdrmer committed Nov 29, 2023
1 parent 24243ec commit 577390e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/build_change_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,11 @@ def build_ver_changelog_summary(ver):
lines = [l.rstrip() for l in lines]

# Remove existent summary
footer_indexs = lines.index(footer)
if footer_indexs >= 0:
try:
footer_indexs = lines.index(footer)
except ValueError as e:
print("No footer found")
else:
# skip `Detail:`, and a following blank line.
lines = lines[footer_indexs+2:]

Expand Down

0 comments on commit 577390e

Please sign in to comment.