mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-17 18:13:01 +08: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:
parent
6728792589
commit
6087e0210c
4
main.py
4
main.py
@ -16,7 +16,11 @@ from comfy_execution.utils import get_executing_context
|
|||||||
from comfy_api import feature_flags
|
from comfy_api import feature_flags
|
||||||
|
|
||||||
if not args.disable_manager:
|
if not args.disable_manager:
|
||||||
|
try:
|
||||||
import comfyui_manager
|
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__":
|
if __name__ == "__main__":
|
||||||
#NOTE: These do not do anything on core ComfyUI, they are for custom nodes.
|
#NOTE: These do not do anything on core ComfyUI, they are for custom nodes.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user