Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Don't print traceback when processing interrupted.

comfyanonymous02ca1c67f87e
diff --git a/execution.py b/execution.py
index c19c10bc6..edf884611 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):