From a464dfa3db71dfeecedda28a5cc6b3c3c816f266 Mon Sep 17 00:00:00 2001 From: doctorpangloss <@hiddenswitch.com> Date: Fri, 11 Jul 2025 13:52:15 -0700 Subject: [PATCH] fix issue when trying to write to a file that already exists --- comfy_extras/nodes/nodes_open_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy_extras/nodes/nodes_open_api.py b/comfy_extras/nodes/nodes_open_api.py index fd28490a4..f0d89fcdd 100644 --- a/comfy_extras/nodes/nodes_open_api.py +++ b/comfy_extras/nodes/nodes_open_api.py @@ -742,7 +742,7 @@ class SaveImagesResponse(CustomNode): except Exception as e: logging.error(f"Error while trying to save file with fsspec_url {uri}", exc_info=e) - abs_path = os.path.abspath(local_path) + abs_path = "" if local_path is None else os.path.abspath(local_path) if is_null_uri(local_path): filename_for_ui = ""