1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 23:14:49 +08:00

Don't print traceback when processing interrupted.

This commit is contained in:
comfyanonymous
2023-05-09 23:51:52 -04:00
parent 314e526c5c
commit 02ca1c67f8

View File

@@ -194,7 +194,10 @@ class PromptExecutor:
if valid:
recursive_execute(self.server, prompt, self.outputs, x, extra_data, executed)
except Exception as e:
print(traceback.format_exc())
if isinstance(e, comfy.model_management.InterruptProcessingException):
print("Processing interrupted")
else:
print(traceback.format_exc())
to_delete = []
for o in self.outputs:
if (o not in current_outputs) and (o not in executed):