summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2019-10-09 10:30:17 -0700
committerDylan Baker <[email protected]>2019-10-25 15:46:03 -0700
commitc6d41e7f0b0c998d9b6f4b1ff55eab9f6cd12ef4 (patch)
tree4f1a2e2a81f96a015c70e46e52fbeece5707650d /bin
parentdf3d4ad82da41c47f6adb2ec4309e873a8f7fd33 (diff)
bin/gen_release_notes.py: Return "None" if there are no new features
Which is very likely .Z > 0 releases. Fixes: 86079447da1e00d49db0cbff9a102eb4e71e8702 ("scripts: Add a gen_release_notes.py script") Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Juan A. Suarez <[email protected]>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gen_release_notes.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/gen_release_notes.py b/bin/gen_release_notes.py
index b0d4c507252..4ef4facf873 100755
--- a/bin/gen_release_notes.py
+++ b/bin/gen_release_notes.py
@@ -224,6 +224,8 @@ def get_features() -> typing.Generator[str, None, None]:
with p.open('rt') as f:
for line in f:
yield line
+ else:
+ yield "None"
async def main() -> None: