block on bad prompt
This commit is contained in:
		
							parent
							
								
									2ba5a0ff3d
								
							
						
					
					
						commit
						ce073a86c7
					
				@ -268,7 +268,7 @@ async def comfy_deploy_run(request):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    status = 200
 | 
					    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
 | 
					        # Even tho there are node_errors it can still be run
 | 
				
			||||||
        status = 400
 | 
					        status = 400
 | 
				
			||||||
        await update_run_with_output(prompt_id, {
 | 
					        await update_run_with_output(prompt_id, {
 | 
				
			||||||
@ -329,7 +329,7 @@ async def stream_prompt(data):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    status = 200
 | 
					    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
 | 
					        # Even tho there are node_errors it can still be run
 | 
				
			||||||
        status = 400
 | 
					        status = 400
 | 
				
			||||||
        await update_run_with_output(prompt_id, {
 | 
					        await update_run_with_output(prompt_id, {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user