From 3f8aef19e09f0b4ce4c60755fe248458c1926524 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Fri, 22 May 2020 12:32:56 -0700 Subject: [PATCH] It isn't an error if no label was specified --- release_often/__main__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/release_often/__main__.py b/release_often/__main__.py index 52ea4dc..580eb38 100644 --- a/release_often/__main__.py +++ b/release_often/__main__.py @@ -52,7 +52,11 @@ def update_version(pr_event): file_contents = version_file.read_text(encoding="utf-8") current_version = build_tool.read_version(file_contents) gidgethub.actions.command("debug", f"Current/old version is {current_version}") - new_version = version.bump_by_label(pr_event, current_version) + try: + new_version = version.bump_by_label(pr_event, current_version) + except ValueError as exc: + gidgethub.actions.command("debug", str(ValueError)) + return None gidgethub.actions.command("debug", f"New version is {new_version}") try: new_contents = build_tool.change_version(