mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-23 21:00:16 +08:00
Improve messaging
This commit is contained in:
parent
ce5fe01768
commit
01f2ecbfb1
@ -131,6 +131,7 @@ def get_input_data(inputs, class_def, unique_id, outputs=None, dynprompt=None, e
|
|||||||
elif input_category is not None:
|
elif input_category is not None:
|
||||||
input_data_all[x] = [input_data]
|
input_data_all[x] = [input_data]
|
||||||
|
|
||||||
|
# todo: this should be retrieved from the execution context
|
||||||
if "hidden" in valid_inputs:
|
if "hidden" in valid_inputs:
|
||||||
h = valid_inputs["hidden"]
|
h = valid_inputs["hidden"]
|
||||||
for x in h:
|
for x in h:
|
||||||
@ -432,7 +433,7 @@ def execute(server, dynprompt, caches, current_item, extra_data, executed, promp
|
|||||||
for name, inputs in input_data_all.items():
|
for name, inputs in input_data_all.items():
|
||||||
input_data_formatted[name] = [format_value(x) for x in inputs]
|
input_data_formatted[name] = [format_value(x) for x in inputs]
|
||||||
|
|
||||||
logging.error(f"!!! Exception during processing !!! {ex}")
|
logging.error("An error occurred while executing a workflow", exc_info=ex)
|
||||||
logging.error(traceback.format_exc())
|
logging.error(traceback.format_exc())
|
||||||
|
|
||||||
error_details: RecursiveExecutionErrorDetails = {
|
error_details: RecursiveExecutionErrorDetails = {
|
||||||
@ -446,7 +447,7 @@ def execute(server, dynprompt, caches, current_item, extra_data, executed, promp
|
|||||||
|
|
||||||
executed.add(unique_id)
|
executed.add(unique_id)
|
||||||
|
|
||||||
return (ExecutionResult.SUCCESS, None, None)
|
return ExecutionResult.SUCCESS, None, None
|
||||||
|
|
||||||
|
|
||||||
class PromptExecutor:
|
class PromptExecutor:
|
||||||
|
|||||||
@ -160,7 +160,7 @@ class RecursiveExecutionErrorDetails(TypedDict, total=True):
|
|||||||
|
|
||||||
|
|
||||||
class RecursiveExecutionTuple(typing.NamedTuple):
|
class RecursiveExecutionTuple(typing.NamedTuple):
|
||||||
valid: bool
|
valid: ExecutionResult
|
||||||
error_details: Optional[RecursiveExecutionErrorDetails | RecursiveExecutionErrorDetailsInterrupted]
|
error_details: Optional[RecursiveExecutionErrorDetails | RecursiveExecutionErrorDetailsInterrupted]
|
||||||
exc_info: Optional[Exception]
|
exc_info: Optional[Exception]
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user