-
Notifications
You must be signed in to change notification settings - Fork 747
Managed exception from Python code is always transformed to PythonException #1443
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
Comments
In 2.x this is by design. |
@lostmsu Amazing, thank you. I see great progress has been achieved there. Is there any workaround in the meantime that you can recommend? |
@tibortakacs you can try simply using the branch from the PR. |
@lostmsu Amazing, it works properly, not only in the simplified code but also in the real application. Based on this great progress, is it fair to say that there is a chance that it will be merged back into |
A chance, yes. But I can not guarantee you that. I'd probably be more certain about the end of May. |
@lostmsu Thank you, looking forward to it. If there any way I can support your work (e.g. I am happy to test it with our application regularly), please let me know. |
Corresponding PR has been merged |
Environment
Summary
If there is a callback from .NET to Python, and the Python code raises a .NET type exception, instead of the corresponding real .NET exception was rethrown on the .NET side (after marshalling), always
Python.Runtime.PythonException
is thrown.Details
.NET snippet
Python snippet
Expected output:
Null reference caught.
Actual output:
General exception caught: Python.Runtime.PythonException
The text was updated successfully, but these errors were encountered: