diff options
| author | 2024-03-14 12:13:35 +0800 | |
|---|---|---|
| committer | 2024-03-14 12:13:35 +0800 | |
| commit | c3d854b051ccb17907726ee16cd882bd4650b724 (patch) | |
| tree | 6d1b5c7da0d3b5bf6c5e2e41786178e7784a6402 | |
| parent | 39e78de2284e8cfb3b942effe2e17042dea4aa96 (diff) | |
| download | ipm-c3d854b051ccb17907726ee16cd882bd4650b724.tar.gz ipm-c3d854b051ccb17907726ee16cd882bd4650b724.zip | |
fix(git): fix f-string expression error
| -rw-r--r-- | src/ipm/utils/git.py | 2 |
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 ")) |
