From dd1d9df23f1a1cce6ca56dc47ac148121e6e9d84 Mon Sep 17 00:00:00 2001 From: bennykok Date: Sun, 18 Aug 2024 15:38:16 -0700 Subject: [PATCH] fix: resolve false possible error --- custom_routes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_routes.py b/custom_routes.py index 9fba6a7..4d8c830 100644 --- a/custom_routes.py +++ b/custom_routes.py @@ -364,7 +364,7 @@ async def comfy_deploy_run(request): status = 200 - if "node_errors" in res and res["node_errors"] is not None: + if "node_errors" in res and res["node_errors"] is not None and len(res["node_errors"]) > 0: # Even tho there are node_errors it can still be run status = 400 await update_run_with_output(prompt_id, { @@ -425,7 +425,7 @@ async def stream_prompt(data): status = 200 - if "node_errors" in res and res["node_errors"] is not None: + if "node_errors" in res and res["node_errors"] is not None and len(res["node_errors"]) > 0: # Even tho there are node_errors it can still be run status = 400 await update_run_with_output(prompt_id, {