Skip to content

Commit c820627

Browse files
committed
style: fix ruff F841 unused variable and F541 unnecessary f-string
1 parent 73f4dd5 commit c820627

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

comfyui_manager/common/git_compat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ def submodule_update(self):
755755
try:
756756
self._repo.submodules.init()
757757
self._repo.submodules.update()
758-
except Exception as e:
758+
except Exception:
759759
import subprocess
760760
try:
761761
result = subprocess.run(
@@ -768,7 +768,7 @@ def submodule_update(self):
768768
f"submodule update failed (exit {result.returncode}): "
769769
f"{result.stderr.decode(errors='replace')}")
770770
except FileNotFoundError:
771-
print(f"[ComfyUI-Manager] pygit2: submodule update requires system git (not installed)", file=sys.stderr)
771+
print("[ComfyUI-Manager] pygit2: submodule update requires system git (not installed)", file=sys.stderr)
772772
except GitCommandError:
773773
raise
774774
except Exception as sub_e:

0 commit comments

Comments
 (0)