From c3d854b051ccb17907726ee16cd882bd4650b724 Mon Sep 17 00:00:00 2001 From: 苏向夜 Date: Thu, 14 Mar 2024 12:13:35 +0800 Subject: fix(git): fix f-string expression error --- src/ipm/utils/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ")) -- cgit v1.2.3-70-g09d2