diff --git a/contrib/gitchangelog/gitchangelog.py b/contrib/gitchangelog/gitchangelog.py index 7d22fe483d..33583185b9 100755 --- a/contrib/gitchangelog/gitchangelog.py +++ b/contrib/gitchangelog/gitchangelog.py @@ -1889,8 +1889,7 @@ def changelog( try: first_version = next(versions) except StopIteration: - warn("Empty changelog. No commits were elected to be used as entry.") - data["versions"] = [] + die("Empty changelog. No commits were elected to be used as entry.") else: data["versions"] = itertools.chain([first_version], versions)