**Describe the bug** Python host code doesn't receive runtime exceptions thrown by Q# code it calls. **To Reproduce** Steps to reproduce the behavior: Q# code: ```qsharp namespace Quantum.CircuitPuzzle { operation ThrowEx() : Int { fail "Throwing exception"; } } ``` Python host code: ```python import qsharp from Quantum.CircuitPuzzle import ThrowEx try: ThrowEx.simulate() print("Didn't catch exception") except Exception: print("Caught exception") ``` **Expected behavior** Python catching exception and printing "Caught exception". **System information** - OS: Windows 11 - `dotnet iqsharp --version` = 0.19.2109165653
Describe the bug
Python host code doesn't receive runtime exceptions thrown by Q# code it calls.
To Reproduce
Steps to reproduce the behavior:
Q# code:
Python host code:
Expected behavior
Python catching exception and printing "Caught exception".
System information
dotnet iqsharp --version= 0.19.2109165653