mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-07-26 18:17:30 +08:00
Update manager_server.py
This commit is contained in:
@@ -14,7 +14,6 @@ import git
|
|||||||
import glob
|
import glob
|
||||||
import json
|
import json
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from contextlib import contextmanager
|
|
||||||
|
|
||||||
from server import PromptServer
|
from server import PromptServer
|
||||||
import manager_core as core
|
import manager_core as core
|
||||||
@@ -318,7 +317,6 @@ setup_environment()
|
|||||||
|
|
||||||
from aiohttp import web
|
from aiohttp import web
|
||||||
import aiohttp
|
import aiohttp
|
||||||
import json
|
|
||||||
import zipfile
|
import zipfile
|
||||||
import urllib.request
|
import urllib.request
|
||||||
|
|
||||||
@@ -890,7 +888,7 @@ async def get_node_types_in_workflows(request):
|
|||||||
# iterate over each node in the workflow
|
# iterate over each node in the workflow
|
||||||
for node in workflow_file_data["nodes"]:
|
for node in workflow_file_data["nodes"]:
|
||||||
if "id" not in node:
|
if "id" not in node:
|
||||||
logging.warning(f"Found a node with no ID - possibly corrupt/invalid workflow?")
|
logging.warning("Found a node with no ID - possibly corrupt/invalid workflow?")
|
||||||
continue
|
continue
|
||||||
# if there's no type, throw a warning
|
# if there's no type, throw a warning
|
||||||
if "type" not in node:
|
if "type" not in node:
|
||||||
|
|||||||
Reference in New Issue
Block a user