From ba4c2cf981fd4aab2b9a80bac83f4aab87479dec Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 17 Jun 2023 07:25:34 -0700 Subject: [PATCH] Fixed versionbump.py to raise an error message with the invalid version string. --- scripts/versionbump.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/versionbump.py b/scripts/versionbump.py index 03e2d98a1..4fafa4184 100644 --- a/scripts/versionbump.py +++ b/scripts/versionbump.py @@ -13,7 +13,7 @@ def main(): new_version_str = args.new_version if not re.match(r'^\d+\.\d+\.\d+$', new_version_str): - raise ValueError("Invalid version format, must be x.y.z") + raise ValueError(f"Invalid version format, must be x.y.z: {new_version_str}") new_version = version.parse(new_version_str)