From ce073a86c76c9ca36a2c6e0d8b85d2831f0ee8eb Mon Sep 17 00:00:00 2001 From: nick Date: Wed, 7 Aug 2024 20:42:12 -0700 Subject: [PATCH] block on bad prompt --- custom_routes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_routes.py b/custom_routes.py index 915a5fc..3ffff73 100644 --- a/custom_routes.py +++ b/custom_routes.py @@ -268,7 +268,7 @@ async def comfy_deploy_run(request): status = 200 - if "node_errors" in res and res["node_errors"]: + if "node_errors" in res and res["node_errors"] is not None: # Even tho there are node_errors it can still be run status = 400 await update_run_with_output(prompt_id, { @@ -329,7 +329,7 @@ async def stream_prompt(data): status = 200 - if "node_errors" in res and res["node_errors"]: + if "node_errors" in res and res["node_errors"] is not None: # Even tho there are node_errors it can still be run status = 400 await update_run_with_output(prompt_id, {