Download custom_nodes/comfyui-dream-project/err.py from StupidGame/MyComfySetUp: direct link, hf CLI and curl.
- Browser
- Download file 255 Bytes
-
https://huggingface.co/StupidGame/MyComfySetUp/resolve/main/custom_nodes/comfyui-dream-project/err.py
- Command line
-
hf download hf://StupidGame/MyComfySetUp/custom_nodes/comfyui-dream-project/err.py
-
curl -L -o err.py https://huggingface.co/StupidGame/MyComfySetUp/resolve/main/custom_nodes/comfyui-dream-project/err.py
255 Bytes
| # -*- coding: utf-8 -*- | |
| def _get_node_name(cls): | |
| return cls.__dict__.get("NODE_NAME", str(cls)) | |
| def on_error(node_cls: type, message: str): | |
| msg = "Failure in [" + _get_node_name(node_cls) + "]:" + message | |
| print(msg) | |
| raise Exception(msg) | |