From bc684efaa4b67ea74c60f58b976f1cc8d51ef6ec Mon Sep 17 00:00:00 2001 From: huchenlei Date: Tue, 7 Jan 2025 21:56:33 -0500 Subject: [PATCH] doc --- server.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index 14cd7ddc..ccbea28d 100644 --- a/server.py +++ b/server.py @@ -46,7 +46,11 @@ async def send_socket_catch_exception(function, message): logging.warning("send error: {}".format(err)) def get_comfyui_version(): - """ Get the version of ComfyUI from the pyproject.toml file. """ + """ Get the version of ComfyUI from the pyproject.toml file. + + Note: + Use Python's built-in `tomllib` from Python 3.11 or later when available. + """ with open("pyproject.toml", "r", encoding="utf-8") as f: return toml.load(f)["project"]["version"]