Skip to content

Commit

Permalink
fixed: apply ConfigParser(strict=False) to other callsites
Browse files Browse the repository at this point in the history
  • Loading branch information
ltdrdata committed Feb 19, 2025
1 parent df3cdfc commit cee4fdc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cm-cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def check_comfyui_hash():
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']

Expand Down
8 changes: 4 additions & 4 deletions glob/manager_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
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 '')


Expand Down Expand Up @@ -1570,7 +1570,7 @@ def run_script(self, cmd, cwd='.'):


def write_config():
config = configparser.ConfigParser()
config = configparser.ConfigParser(strict=False)

config['default'] = {
'preview_method': manager_funcs.get_current_preview_method(),
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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():
Expand Down
4 changes: 2 additions & 2 deletions prestartup_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -787,7 +787,7 @@ def execute_migration(moves):
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']

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"]

Expand Down

0 comments on commit cee4fdc

Please sign in to comment.