modified: Changed behavior so that if comfyui-manager is not installed, it provides an installation guide message instead of raising an exception.

This commit is contained in:
Dr.Lt.Data 2025-08-24 16:05:10 +09:00
parent 6728792589
commit 6087e0210c

View File

@ -16,7 +16,11 @@ from comfy_execution.utils import get_executing_context
from comfy_api import feature_flags
if not args.disable_manager:
import comfyui_manager
try:
import comfyui_manager
except Exception:
logging.warning(f"\n\nUnable to run comfyui-manager, disabling it. To enable comfyui-manager, run the following command:\ncommand:\n\t{sys.executable} -m pip install --pre comfyui_manager\n")
args.disable_manager = True
if __name__ == "__main__":
#NOTE: These do not do anything on core ComfyUI, they are for custom nodes.