-
Notifications
You must be signed in to change notification settings - Fork 44
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
Old-style exceptions hang Pyblish QML #317
Labels
Comments
Is this still a problem? Looking a little closer, it looks like the issue may stem from here, where
Didn't know that was possible, but that would probably take care of it; it's the same same effect anyway, the only reason Exception is there is due to Flake8/PyLint warnings. |
Yes, I believe it is still an issue. :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue
In Houdini we noticed that sometimes when a Houdini error was raised (that wasn't explicitly captured) in our plug-in that it would completely hang Pyblish QML. We found out that it was due to
hou.Error
not inheriting from the PythonException
and this code would not capture accordingly.See this reproducible code snippet that also hangs outside of Houdini:
Solution
Adding a bare except would already solve it, but potentially we should still ignore
KeyInterupt
, etc. so we should set up a clever capture that at least ignores the ones we want to explicitly ignore.So we'll need to do something like:
The text was updated successfully, but these errors were encountered: