fixed: apply ConfigParser(strict=False) to other callsites

https://github.com/ltdrdata/ComfyUI-Manager/pull/1561
This commit is contained in:
Dr.Lt.Data 2025-02-19 22:07:47 +09:00
parent df3cdfccb0
commit cee4fdcbb0
4 changed files with 8 additions and 8 deletions

View File

@ -76,7 +76,7 @@ core.check_invalid_nodes()
def read_downgrade_blacklist():
try:
import configparser
config = configparser.ConfigParser()
config = configparser.ConfigParser(strict=False)
config.read(core.manager_config.path)
default_conf = config['default']

View File

@ -42,7 +42,7 @@ import manager_downloader
from node_package import InstalledNodePackage
version_code = [3, 25]
version_code = [3, 25, 1]
version_str = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '')
@ -1570,7 +1570,7 @@ manager_funcs = ManagerFuncs()
def write_config():
config = configparser.ConfigParser()
config = configparser.ConfigParser(strict=False)
config['default'] = {
'preview_method': manager_funcs.get_current_preview_method(),
@ -1601,7 +1601,7 @@ def write_config():
def read_config():
try:
config = configparser.ConfigParser()
config = configparser.ConfigParser(strict=False)
config.read(manager_config_path)
default_conf = config['default']
manager_util.use_uv = default_conf['use_uv'].lower() == 'true' if 'use_uv' in default_conf else False
@ -3280,7 +3280,7 @@ def resolve_giturl_from_path(fullpath):
if not os.path.exists(git_config_path):
return "unknown"
config = configparser.ConfigParser()
config = configparser.ConfigParser(strict=False)
config.read(git_config_path)
for k, v in config.items():

View File

@ -95,7 +95,7 @@ def read_config():
global default_conf
try:
import configparser
config = configparser.ConfigParser()
config = configparser.ConfigParser(strict=False)
config.read(manager_config_path)
default_conf = config['default']
except Exception:
@ -787,7 +787,7 @@ if script_executed:
def check_windows_event_loop_policy():
try:
import configparser
config = configparser.ConfigParser()
config = configparser.ConfigParser(strict=False)
config.read(manager_config_path)
default_conf = config['default']

View File

@ -1,7 +1,7 @@
[project]
name = "comfyui-manager"
description = "ComfyUI-Manager provides features to install and manage custom nodes for ComfyUI, as well as various functionalities to assist with ComfyUI."
version = "3.25"
version = "3.25.1"
license = { file = "LICENSE.txt" }
dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]