Browse Source

Don't print traceback when processing interrupted.

pull/642/head
comfyanonymous 2 years ago
parent
commit
02ca1c67f8
  1. 5
      execution.py

5
execution.py

@ -194,7 +194,10 @@ class PromptExecutor:
if valid: if valid:
recursive_execute(self.server, prompt, self.outputs, x, extra_data, executed) recursive_execute(self.server, prompt, self.outputs, x, extra_data, executed)
except Exception as e: 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 = [] to_delete = []
for o in self.outputs: for o in self.outputs:
if (o not in current_outputs) and (o not in executed): if (o not in current_outputs) and (o not in executed):

Loading…
Cancel
Save