You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importclrclr.AddReference(...)
importSystemimportExampletry:
forrinExample.Script.Test():
printrexceptSystem.Exceptionase:
printe.MessageexceptExceptionase:
printe.messageexcept:
print"Unfortunately this one doesn't work either"
If there was a crash, please include the traceback here.
UnhandledException: System.Exception: Ooops!atExample.Script.<Test>d__13.MoveNext() in ...
at Python.Runtime.Iterator.tp_iternext(IntPtrob)
The text was updated successfully, but these errors were encountered:
Environment
Details
Catch an exception thrown from a C# iterator (done with yield return) in a python script.
Minimal, Complete, and Verifiable example
this will help us understand the issue.
compile:
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" /t:library bad_yield.cs
The text was updated successfully, but these errors were encountered: