Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

execution.py: Fix prompt_worker thread error handling #6018

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

D1-3105
Copy link

@D1-3105 D1-3105 commented Dec 11, 2024

If something raises inside execution.execute function's except - thread will die due to unhandled error. I faced problem because of a bug in torch==2.3.1 - tensor's __str__ method raised unhandled error. To face the same symptoms you can mock execution.format_value to raise any Exception.
Please, check my PR properly, I'm not familiar with ComfyUI's messages exchange protocol between frontend and backend.

@bigcat88
Copy link
Contributor

I don't know how necessary this PR is, but a specific implementation question:

Why not use one logging.exception instead of two calls to logging.error ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants