From 6087e0210c558ebbd2a78a7aa35a0fa10afeaf4e Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Sun, 24 Aug 2025 16:05:10 +0900 Subject: [PATCH] modified: Changed behavior so that if comfyui-manager is not installed, it provides an installation guide message instead of raising an exception. --- main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 5d083c8e4..22590ecd7 100644 --- a/main.py +++ b/main.py @@ -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.