mklog: skip unsupported files
This fixes an infinite loop one could see for:
git show b87ec922c4
| ./contrib/mklog.py
contrib/ChangeLog:
* mklog.py: Fix infinite loop for unsupported files.
This commit is contained in:
parent
77d372abec
commit
236d6a33ca
1 changed files with 3 additions and 0 deletions
|
@ -133,6 +133,9 @@ def generate_changelog(data, no_functions=False, fill_pr_titles=False):
|
|||
diff = PatchSet(data)
|
||||
|
||||
for file in diff:
|
||||
# skip files that can't be parsed
|
||||
if file.path == '/dev/null':
|
||||
continue
|
||||
changelog = find_changelog(file.path)
|
||||
if changelog not in changelogs:
|
||||
changelogs[changelog] = []
|
||||
|
|
Loading…
Add table
Reference in a new issue