From f7793cea7f885c64474a09fe62661fc5e4e29bb7 Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Wed, 3 May 2017 13:17:38 -0400 Subject: [PATCH] dont error if no changelog --- build/release.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build/release.py b/build/release.py index c67d873b1..0f736cc14 100644 --- a/build/release.py +++ b/build/release.py @@ -47,11 +47,13 @@ def main(): is_rc = re.search('\drc\d+$', repo.new_version) is not None # only have a release message for real releases, not for RCs - release_msg = '' if is_rc else repo.get_unreleased_changelog() + release_msg = None if is_rc else repo.get_unreleased_changelog() + if release_msg is None: + release_msg = '' if args.dry_run: print "rc: " + ("yes" if is_rc else "no") - print "release message: \n" + (release_msg or " NO MESSAGE FOR RCs") + print "release message: \n" + (release_msg if not is_rc else " NO MESSAGE FOR RCs") return gh_token = get_gh_token()