From 39e78de2284e8cfb3b942effe2e17042dea4aa96 Mon Sep 17 00:00:00 2001 From: 苏向夜 Date: Thu, 14 Mar 2024 12:11:49 +0800 Subject: fix(git): fix unexpected character error in old version of python --- 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 59d3f72..7fb3912 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(f"创建 Tag 时出现异常: [red]{err.stderr.strip('\n ')}[/]") -- cgit v1.2.3-70-g09d2