changelog: skip failing lines (#60475)

This commit is contained in:
Frédéric Péters 2022-01-10 20:06:10 +01:00
parent d4debeef85
commit 4f93ac5490
1 changed files with 4 additions and 1 deletions

View File

@ -65,7 +65,10 @@ def changelog_from_git(
except GitCommandError:
break
else:
versions.append((last_tag, get_commit_from_tag(repo, last_tag)))
try:
versions.append((last_tag, get_commit_from_tag(repo, last_tag)))
except IndexError:
pass
n = len(versions)
for i in range(n):
name, commit = versions[i]