File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -384,8 +384,9 @@ def tag(ctx: Context) -> None:
384384 result = ctx .run ("git rev-parse --abbrev-ref HEAD" , hide = "both" )
385385
386386 if result .stdout .strip () != "develop" : # pyright: ignore
387- msg = "Are you still on a feature or master branch?"
388- raise RuntimeError (msg )
387+ error = "Are you still on a feature or master branch?"
388+
389+ raise RuntimeError (error )
389390
390391 with open (os .path .join (PYTHON_PACKAGE_NAME , "__init__.py" )) as file_handle :
391392 file_content = file_handle .read ()
@@ -414,11 +415,12 @@ def tag(ctx: Context) -> None:
414415 tags .add (remote_tag .split ("refs/tags/" )[1 ].replace ("refs/tags/" , "^{}" ))
415416 version_tags = sorted (tags )
416417 if f"v{ version } " in version_tags :
417- msg = (
418+ error = (
418419 f'A "{ PYTHON_PACKAGE_NAME } " "v{ version } " tag already exists in '
419420 f"remote repository!"
420421 )
421- raise RuntimeError (msg )
422+
423+ raise RuntimeError (error )
422424
423425 ctx .run (f"git flow release start v{ version } " )
424426 ctx .run (f"git flow release finish v{ version } " )
You can’t perform that action at this time.
0 commit comments