mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-05-10 09:02:30 +08:00
style: fix ruff F841 unused variable and F541 unnecessary f-string
This commit is contained in:
parent
73f4dd5637
commit
c820627b06
@ -755,7 +755,7 @@ class _Pygit2Repo(GitRepo):
|
|||||||
try:
|
try:
|
||||||
self._repo.submodules.init()
|
self._repo.submodules.init()
|
||||||
self._repo.submodules.update()
|
self._repo.submodules.update()
|
||||||
except Exception as e:
|
except Exception:
|
||||||
import subprocess
|
import subprocess
|
||||||
try:
|
try:
|
||||||
result = subprocess.run(
|
result = subprocess.run(
|
||||||
@ -768,7 +768,7 @@ class _Pygit2Repo(GitRepo):
|
|||||||
f"submodule update failed (exit {result.returncode}): "
|
f"submodule update failed (exit {result.returncode}): "
|
||||||
f"{result.stderr.decode(errors='replace')}")
|
f"{result.stderr.decode(errors='replace')}")
|
||||||
except FileNotFoundError:
|
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:
|
except GitCommandError:
|
||||||
raise
|
raise
|
||||||
except Exception as sub_e:
|
except Exception as sub_e:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user