Skip to content

Commit

Permalink
fix: update rich text in toml_file.py
Browse files Browse the repository at this point in the history
  • Loading branch information
HsiangNianian authored Jul 27, 2024
1 parent 2aa53c1 commit 5350950
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ipm/project/toml_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,11 @@ def add_yggdrasil(toml_path: Path, name: str, index: str):

def remove_yggdrasil(project: InfiniProject, name: str):
if "yggdrasils" not in project._data:
raise ProjectError("项目文件缺乏 [bold red]yggdrasils[/] 项.")
raise ProjectError("项目文件缺乏 [bold red]yggdrasils[/bold red] 项.")
else:
yggdrasils = project._data["yggdrasils"]
if name not in yggdrasils.keys(): # type: ignore
raise ProjectError(f"世界树 [bold red]{name}[/] 未注册, 忽略操作.")
raise ProjectError(f"世界树 [bold red]{name}[/bold red] 未注册, 忽略操作.")
project.dump()


Expand Down

0 comments on commit 5350950

Please sign in to comment.