Browse Source

fix: failure of first startup

pull/175/head
Dr.Lt.Data 1 year ago
parent
commit
7b0f36711f
  1. 2
      __init__.py
  2. 3
      prestartup_script.py

2
__init__.py

@ -13,7 +13,7 @@ import concurrent
import ssl import ssl
from urllib.parse import urlparse from urllib.parse import urlparse
version = "V0.43" version = "V0.43.1"
print(f"### Loading: ComfyUI-Manager ({version})") print(f"### Loading: ComfyUI-Manager ({version})")

3
prestartup_script.py

@ -152,6 +152,7 @@ print("** ComfyUI start up time:", datetime.datetime.now())
def check_bypass_ssl(): def check_bypass_ssl():
try:
import configparser import configparser
import ssl import ssl
config_path = os.path.join(os.path.dirname(__file__), "config.ini") config_path = os.path.join(os.path.dirname(__file__), "config.ini")
@ -162,6 +163,8 @@ def check_bypass_ssl():
if 'bypass_ssl' in default_conf and default_conf['bypass_ssl'].lower() == 'true': if 'bypass_ssl' in default_conf and default_conf['bypass_ssl'].lower() == 'true':
print(f"[ComfyUI-Manager] WARN: Unsafe - SSL verification option is Enabled. (see ComfyUI-Manager/config.ini)") print(f"[ComfyUI-Manager] WARN: Unsafe - SSL verification option is Enabled. (see ComfyUI-Manager/config.ini)")
ssl._create_default_https_context = ssl._create_unverified_context # SSL certificate error fix. ssl._create_default_https_context = ssl._create_unverified_context # SSL certificate error fix.
except Exception:
pass
check_bypass_ssl() check_bypass_ssl()

Loading…
Cancel
Save