From 135e055b472178de3f129564bba5354a1e151891 Mon Sep 17 00:00:00 2001 From: Stefan Seefeld Date: Fri, 9 Dec 2016 13:01:03 -0500 Subject: [PATCH] Allow for empty logs. --- releasetools/changelog.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/releasetools/changelog.py b/releasetools/changelog.py index 230557e7b..845d825f0 100644 --- a/releasetools/changelog.py +++ b/releasetools/changelog.py @@ -36,6 +36,8 @@ entries = [dict(zip(GIT_COMMIT_FIELDS, entry)) for entry in entries] builder = ET.TreeBuilder() builder.start('log', {}) for e in entries: + if not e['id']: + continue builder.start('logentry', {'revision':e['id']}) builder.start('author', {}) builder.data(e['author_name']) -- 2.40.0