From c6d41e7f0b0c998d9b6f4b1ff55eab9f6cd12ef4 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 9 Oct 2019 10:30:17 -0700 Subject: [PATCH] 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 Reviewed-by: Juan A. Suarez --- bin/gen_release_notes.py | 2 ++ 1 file changed, 2 insertions(+) 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: -- 2.30.2