mirror of
https://git.datalinker.icu/ltdrdata/ComfyUI-Manager
synced 2025-12-14 00:24:23 +08:00
fixed: robust loading if db is broken
This commit is contained in:
parent
62b4bf7af4
commit
e732a39fea
@ -42,7 +42,7 @@ import manager_downloader
|
|||||||
from node_package import InstalledNodePackage
|
from node_package import InstalledNodePackage
|
||||||
|
|
||||||
|
|
||||||
version_code = [3, 17, 8]
|
version_code = [3, 17, 9]
|
||||||
version_str = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '')
|
version_str = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '')
|
||||||
|
|
||||||
|
|
||||||
@ -733,14 +733,17 @@ class UnifiedManager:
|
|||||||
|
|
||||||
json_obj = await get_data_by_mode(mode, 'custom-node-list.json', channel_url=channel_url)
|
json_obj = await get_data_by_mode(mode, 'custom-node-list.json', channel_url=channel_url)
|
||||||
for x in json_obj['custom_nodes']:
|
for x in json_obj['custom_nodes']:
|
||||||
for y in x['files']:
|
try:
|
||||||
if 'github.com' in y and not (y.endswith('.py') or y.endswith('.js')):
|
for y in x['files']:
|
||||||
repo_name = y.split('/')[-1]
|
if 'github.com' in y and not (y.endswith('.py') or y.endswith('.js')):
|
||||||
res[repo_name] = (x, False)
|
repo_name = y.split('/')[-1]
|
||||||
|
res[repo_name] = (x, False)
|
||||||
|
|
||||||
if 'id' in x:
|
if 'id' in x:
|
||||||
if x['id'] not in res:
|
if x['id'] not in res:
|
||||||
res[x['id']] = (x, True)
|
res[x['id']] = (x, True)
|
||||||
|
except:
|
||||||
|
logging.error(f"[ComfyUI-Manager] broken item:{x}")
|
||||||
|
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "comfyui-manager"
|
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."
|
description = "ComfyUI-Manager provides features to install and manage custom nodes for ComfyUI, as well as various functionalities to assist with ComfyUI."
|
||||||
version = "3.17.8"
|
version = "3.17.9"
|
||||||
license = { file = "LICENSE.txt" }
|
license = { file = "LICENSE.txt" }
|
||||||
dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]
|
dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user