style: fix ruff F841 unused variable and F541 unnecessary f-string

This commit is contained in:
Dr.Lt.Data 2026-03-27 08:39:39 +09:00
parent 73f4dd5637
commit c820627b06

View File

@ -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: