Fix "gen_changelog.py -a" with empty future section

develop
lethosor 2018-05-18 14:52:25 -04:00
parent 6047ddedd3
commit 0f3244336b
1 changed files with 3 additions and 1 deletions

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