Skip to content

Commit

Permalink
Fix "gen_changelog.py -a" with empty future section
Browse files Browse the repository at this point in the history
  • Loading branch information
lethosor committed May 18, 2018
1 parent 6047dde commit 0f32443
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/gen_changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ def generate_changelog(all=False):

if all:
for version in versions:
if version not in stable_version_map:
print('warn: skipping ' + version)
continue
if stable_version_map[version] == version:
version_entries = {version: stable_entries[version]}
else:
Expand All @@ -240,7 +243,6 @@ def generate_changelog(all=False):
'docs/_changelogs/%s-reddit.txt' % version,
replace=False,
prefix='> ')
print('ch ' + version)

return entries

Expand Down

0 comments on commit 0f32443

Please sign in to comment.