diff --git a/scripts/python/release_label_validator.py b/scripts/python/release_label_validator.py index 3f3bb63f6f..ae79a1d3e7 100755 --- a/scripts/python/release_label_validator.py +++ b/scripts/python/release_label_validator.py @@ -58,7 +58,6 @@ latest_release_name = latest_release['name'].split(".") new_release_name = os.getenv('NAME').split(".") if latest_release_name[0] == new_release_name[0] and latest_release_name[1] == new_release_name[1]: - error_message = "\nThese PRs have feature label, but only the patch version has changed:" + '\n'.join([f"PR: {pr}" for pr in feature_prs]) - sys.exit(error_message) + sys.exit("\nThese PRs have feature label, but only the patch version has changed:\n" + '\n'.join([f"PR: {pr}" for pr in feature_prs])) print("\nNew name is correct")