mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 02:15:17 +00:00
Update execution.py
This commit is contained in:
parent
5bea1d2ec9
commit
fcb5988c24
11
execution.py
11
execution.py
@ -496,8 +496,15 @@ class PromptExecutor:
|
|||||||
if error is not None:
|
if error is not None:
|
||||||
self.handle_execution_error(prompt_id, dynamic_prompt.original_prompt, current_outputs, executed, error, ex)
|
self.handle_execution_error(prompt_id, dynamic_prompt.original_prompt, current_outputs, executed, error, ex)
|
||||||
break
|
break
|
||||||
|
try:
|
||||||
result, error, ex = execute(self.server, dynamic_prompt, self.caches, node_id, extra_data, executed, prompt_id, execution_list, pending_subgraph_results)
|
result, error, ex = execute(self.server, dynamic_prompt, self.caches, node_id, extra_data, executed, prompt_id, execution_list, pending_subgraph_results)
|
||||||
|
except Exception as e:
|
||||||
|
typ, _, tb = sys.exc_info()
|
||||||
|
exception_type = full_type_name(typ)
|
||||||
|
logging.error(f"Unexpected error occurred, during nested error handling: {e}, please open an issue on github.")
|
||||||
|
logging.error(traceback.format_exc())
|
||||||
|
self.add_message("execution_error", {"prompt_id": prompt_id}, broadcast=True)
|
||||||
|
break
|
||||||
self.success = result != ExecutionResult.FAILURE
|
self.success = result != ExecutionResult.FAILURE
|
||||||
if result == ExecutionResult.FAILURE:
|
if result == ExecutionResult.FAILURE:
|
||||||
self.handle_execution_error(prompt_id, dynamic_prompt.original_prompt, current_outputs, executed, error, ex)
|
self.handle_execution_error(prompt_id, dynamic_prompt.original_prompt, current_outputs, executed, error, ex)
|
||||||
|
Loading…
Reference in New Issue
Block a user