aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author苏向夜 <fu050409@163.com>2024-03-14 12:13:35 +0800
committer苏向夜 <fu050409@163.com>2024-03-14 12:13:35 +0800
commitc3d854b051ccb17907726ee16cd882bd4650b724 (patch)
tree6d1b5c7da0d3b5bf6c5e2e41786178e7784a6402
parent39e78de2284e8cfb3b942effe2e17042dea4aa96 (diff)
downloadipm-c3d854b051ccb17907726ee16cd882bd4650b724.tar.gz
ipm-c3d854b051ccb17907726ee16cd882bd4650b724.zip
fix(git): fix f-string expression error
-rw-r--r--src/ipm/utils/git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipm/utils/git.py b/src/ipm/utils/git.py
index 7fb3912..306ee67 100644
--- a/src/ipm/utils/git.py
+++ b/src/ipm/utils/git.py
@@ -26,4 +26,4 @@ def git_tag(target_path: Path, tag: str):
try:
repo.create_tag("v" + tag)
except GitCommandError as err:
- raise RuntimeError(f"创建 Tag 时出现异常: [red]{err.stderr.strip('\n ')}[/]")
+ raise RuntimeError("创建 Tag 时出现异常: [red]%s[/]" % err.stderr.strip("\n "))