Skip to content

Commit

Permalink
Fix ruff.
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjhuang committed Sep 13, 2024
1 parent 4bdf8ae commit cb44ab6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions comfy_cli/git_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
import subprocess
from typing import Optional

from rich.console import Console
from rich.panel import Panel
Expand Down Expand Up @@ -35,9 +34,9 @@ def git_checkout_tag(repo_path: str, tag: str) -> bool:
except subprocess.CalledProcessError as e:
error_message = Text()
error_message.append("Git Checkout Error", style="bold red on white")
error_message.append(f"\n\nFailed to checkout tag: ", style="bold yellow")
error_message.append("\n\nFailed to checkout tag: ", style="bold yellow")
error_message.append(f"[cyan]{tag}[/cyan]")
error_message.append(f"\n\nError details:", style="bold red")
error_message.append("\n\nError details:", style="bold red")
error_message.append(f"\n{str(e)}", style="italic")

if e.stderr:
Expand Down

0 comments on commit cb44ab6

Please sign in to comment.