mirror of
https://git.datalinker.icu/ltdrdata/ComfyUI-Manager
synced 2025-12-10 06:34:24 +08:00
fix: failure of first startup
This commit is contained in:
parent
5a09eae25e
commit
7b0f36711f
@ -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})")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -152,16 +152,19 @@ print("** ComfyUI start up time:", datetime.datetime.now())
|
|||||||
|
|
||||||
|
|
||||||
def check_bypass_ssl():
|
def check_bypass_ssl():
|
||||||
import configparser
|
try:
|
||||||
import ssl
|
import configparser
|
||||||
config_path = os.path.join(os.path.dirname(__file__), "config.ini")
|
import ssl
|
||||||
config = configparser.ConfigParser()
|
config_path = os.path.join(os.path.dirname(__file__), "config.ini")
|
||||||
config.read(config_path)
|
config = configparser.ConfigParser()
|
||||||
default_conf = config['default']
|
config.read(config_path)
|
||||||
|
default_conf = config['default']
|
||||||
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)")
|
if 'bypass_ssl' in default_conf and default_conf['bypass_ssl'].lower() == 'true':
|
||||||
ssl._create_default_https_context = ssl._create_unverified_context # SSL certificate error fix.
|
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.
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
check_bypass_ssl()
|
check_bypass_ssl()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user