From 782c6f439eda79d88f22908bc83f57db77d44097 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Wed, 12 Mar 2025 18:10:42 +0900 Subject: [PATCH] fixed: controlbridge - better error message - mute/bypass behavior cannot be used in api mode https://github.com/ltdrdata/ComfyUI-Impact-Pack/issues/933 --- modules/impact/config.py | 2 +- modules/impact/logics.py | 3 +++ pyproject.toml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/impact/config.py b/modules/impact/config.py index 7a4c005..73362f8 100644 --- a/modules/impact/config.py +++ b/modules/impact/config.py @@ -1,7 +1,7 @@ import configparser import os -version_code = [8, 8, 4] +version_code = [8, 8, 5] version = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '') dependency_version = 24 diff --git a/modules/impact/logics.py b/modules/impact/logics.py index d943342..03ec373 100644 --- a/modules/impact/logics.py +++ b/modules/impact/logics.py @@ -701,6 +701,9 @@ class ImpactControlBridge: return (value, ) else: return (ExecutionBlocker(None), ) + elif extra_pnginfo is None: + logging.warn(f"[Impact Pack] limitation: '{behavior}' behavior cannot be used in API execution.") + return (value,) else: workflow_nodes, links = workflow_to_map(extra_pnginfo['workflow']) diff --git a/pyproject.toml b/pyproject.toml index 02fc13b..d03be22 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-impact-pack" description = "This node pack offers various detector nodes and detailer nodes that allow you to configure a workflow that automatically enhances facial details. And provide iterative upscaler." -version = "8.8.4" +version = "8.8.5" license = { file = "LICENSE.txt" } dependencies = ["segment-anything", "scikit-image", "piexif", "transformers", "opencv-python-headless", "GitPython", "scipy>=1.11.4"]