From 1f985275ccec86014827620b539c857526824e9d Mon Sep 17 00:00:00 2001 From: chenyijian Date: Wed, 18 Dec 2024 16:29:00 +0800 Subject: [PATCH] add except error:GitCommandError --- Loader.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Loader.py b/Loader.py index 50ad40f..a2ccf16 100644 --- a/Loader.py +++ b/Loader.py @@ -249,6 +249,8 @@ def check_updates(self): except ImportError: self.__error("GitPython is not installed.") + except GitCommandError: + self.__error("git command exec failed.") def setup_rembg(self): os.environ["U2NET_HOME"] = folder_paths.models_dir + "/onnx"