From 2d7a60689b980171cf6550e0e5bb283c2df9514f Mon Sep 17 00:00:00 2001 From: "dr.lt.data" Date: Thu, 21 Sep 2023 10:17:48 +0900 Subject: [PATCH] fix: crash on windows --- __init__.py | 2 +- git_helper.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index fc0f674b..b544c59e 100644 --- a/__init__.py +++ b/__init__.py @@ -56,7 +56,7 @@ sys.path.append('../..') from torchvision.datasets.utils import download_url # ensure .js -print("### Loading: ComfyUI-Manager (V0.30.2)") +print("### Loading: ComfyUI-Manager (V0.30.3)") comfy_ui_required_revision = 1240 comfy_ui_revision = "Unknown" diff --git a/git_helper.py b/git_helper.py index 752aa0ea..5603fad1 100644 --- a/git_helper.py +++ b/git_helper.py @@ -79,7 +79,7 @@ def gitpull(path): def setup_environment(): config = configparser.ConfigParser() config.read(config_path) - if 'git_exe' in config['default'] and config['default']['git_exe'] != '': + if 'default' in config and 'git_exe' in config['default'] and config['default']['git_exe'] != '': git.Git().update_environment(GIT_PYTHON_GIT_EXECUTABLE=config['default']['git_exe'])