mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-27 11:39:51 +00:00
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:
6
main.py
6
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.
|
||||
|
||||
Reference in New Issue
Block a user