QuantConnect / pythonnet

Python for .NET is a package that gives Python programmers nearly seamless integration with the .NET Common Language Runtime (CLR) and provides a powerful application scripting tool for .NET developers.
http://pythonnet.github.io
MIT License
28 stars 26 forks source link

Throw C# exceptions as Python exceptions in dynamic objects #73

Closed jhonabreul closed 1 year ago

jhonabreul commented 1 year ago

Catching C# exceptions and properly throwing them as Python exceptions in DynamicClassObject getattr and setattr overrides. This was causing the host process to crash since C# exceptions cannot be properly handled in Python.