From 02ca1c67f87e46e926aba325e73b2845d5244874 Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Tue, 9 May 2023 23:51:52 -0400 Subject: [PATCH] Don't print traceback when processing interrupted. --- execution.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/execution.py b/execution.py index c19c10bc..edf88461 100644 --- a/execution.py +++ b/execution.py @@ -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):