From c820627b06db5ad5e5a3b3ecab766a8bf6623266 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Fri, 27 Mar 2026 08:39:39 +0900 Subject: [PATCH] style: fix ruff F841 unused variable and F541 unnecessary f-string --- comfyui_manager/common/git_compat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comfyui_manager/common/git_compat.py b/comfyui_manager/common/git_compat.py index 747a5d98..5fa0501d 100644 --- a/comfyui_manager/common/git_compat.py +++ b/comfyui_manager/common/git_compat.py @@ -755,7 +755,7 @@ class _Pygit2Repo(GitRepo): try: self._repo.submodules.init() self._repo.submodules.update() - except Exception as e: + except Exception: import subprocess try: result = subprocess.run( @@ -768,7 +768,7 @@ class _Pygit2Repo(GitRepo): f"submodule update failed (exit {result.returncode}): " f"{result.stderr.decode(errors='replace')}") except FileNotFoundError: - print(f"[ComfyUI-Manager] pygit2: submodule update requires system git (not installed)", file=sys.stderr) + print("[ComfyUI-Manager] pygit2: submodule update requires system git (not installed)", file=sys.stderr) except GitCommandError: raise except Exception as sub_e: